• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts bean:define problem.

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look closely at your code again, in particular the first <bean:define...> tag.

 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nice catch David!
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, Thanks.
 
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic