Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TagLib in Struts

 
john Lin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp page that use <HTML:form> tag of struts. The form contains 64 fields.
when this application running in tomcat 3.3.1, the tomcat crashes.
It seems like the servlet generated from this jsp page is causing the engine to crach since service() method has too many braches.
My question:
Do we have a limitation on how many fields it can contain in the <HTML:form> tag?
Regards
John
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this to the Java Frameworks forum.
 
Ted Husted
Author
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is not a Struts-imposed limitations, but many people report problems when you get past 50 tags or so. Changing JVMs can help (e.g. to IBM), and changing containers can also help (e.g. to Tomcat 4.1). Sometimes using Tiles to put some of the tags in a separate JSP can help.
Another way to go is to look at Velocity templates or XLST as the presentation layer. See the Struts Resources page for some links.
HTH, Ted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic