This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Struts and the fly likes TagLib in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "TagLib in Struts" Watch "TagLib in Struts" New topic

TagLib in Struts

john Lin

Joined: Dec 03, 2002
Posts: 8
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?
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
I am moving this to the Java Frameworks forum.

Matthew Phillips
Ted Husted
Ranch Hand

Joined: Dec 02, 2002
Posts: 37
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.

<a href="" target="_blank" rel="nofollow">Struts in Action</a>
I agree. Here's the link:
subject: TagLib in Struts
jQuery in Action, 3rd edition