Meaningless Drivel is fun!*
The moose likes Struts and the fly likes struts bean:define problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts bean:define problem." Watch "struts bean:define problem." New topic
Author

struts bean:define problem.

Dany Mendez
Greenhorn

Joined: Nov 04, 2008
Posts: 14
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

Joined: May 26, 2003
Posts: 30789
    
157

Dany,
Welcome to JavaRanch!

Does the page still run? Some IDEs have problems parsing JSPs properly - especially when mixing scriptlets and tags.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Dany Mendez
Greenhorn

Joined: Nov 04, 2008
Posts: 14
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

Joined: Sep 29, 2008
Posts: 12617

Look closely at your code again, in particular the first <bean:define...> tag.

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Nice catch David!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

And to think they want to give me OCD meds. Why, I'd be utterly useless then.
Dany Mendez
Greenhorn

Joined: Nov 04, 2008
Posts: 14
Sorry,

I was unable to understand your remark...

Could you please be more explicit?

thanks.

Dany Mendez
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617



*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

Joined: Nov 04, 2008
Posts: 14
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

Joined: Sep 29, 2008
Posts: 12617

You'd have to ask the folks that wrote the JSP parsers in NetBeans and/or JDeveloper that one!
Dany Mendez
Greenhorn

Joined: Nov 04, 2008
Posts: 14
Ok, Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts bean:define problem.