Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts bean:define problem.

 
Dany Mendez
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm migrating my project from Netbeans to jdevelop. In Netbeans, it compiles fine, but in jdevelop i get an error that says that it was found a </bean efine> tag without the opening tag. When i opend the code i saw that the tag was opened:
<bean efine id="regPag" name="regPage" scope="request"/>
All other <bean> tags represent no problem, just the ones with java code beteewn them, like this:

<bean efine id="regPag" name="regPage" scope="request"/>
<%
String rp = ""+regPag;
int totalPage = Integer.parseInt(rp);
%>
</bean efine>

Can you help me?
Thanks in advance.

Dany Mendez

[edited to disable smilies]
[ November 16, 2008: Message edited by: Jeanne Boyarsky ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34681
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dany,
Welcome to JavaRanch!

Does the page still run? Some IDEs have problems parsing JSPs properly - especially when mixing scriptlets and tags.
 
Dany Mendez
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

The project is runnig fine in netbeans, so i supose that the problem must be with the Jdeveloper or i didn't configure it properly. Maybe some jar is missing... Is there any fix to the problem of bad parsing?

Regards

Dany
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look closely at your code again, in particular the first <bean:define...> tag.

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34681
367
Eclipse IDE Java VI Editor
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And to think they want to give me OCD meds. Why, I'd be utterly useless then.
 
Dany Mendez
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry,

I was unable to understand your remark...

Could you please be more explicit?

thanks.

Dany Mendez
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


*sigh*

Look at the first tag. Now look at the end of your first tag (or, more precisely, one character before the end of your first tag).
 
Dany Mendez
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ho! I get it. It�s already closed!
One more question: This code was not made by me, I'me just instaling it in other enviroment and for that i need to change some things. The question is: Why did it worked fine wtith netbeans and it does not with jdeveloper?

Thanks a lot.

Dany Mendez
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd have to ask the folks that wrote the JSP parsers in NetBeans and/or JDeveloper that one!
 
Dany Mendez
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic