• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there a max number of variables that can be used in any JSP?  RSS feed

 
Tim Eyre
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am having a problem printing more than 42 variables in the same JSP from a bean using the following code:
<bean:write name="result" property="metric1"/>
Even if I just print the same one over and over again I get the following error message:
An error occurred at line: 70 in the jsp file: /STPMetricsTree.jsp
Generated servlet error:
/home/gstb-docs/tomcat/gstb/work/localhost/StrutsReportsDev/STPMetricsTree$jsp.java:1361: Variable _jspx_eval_bean_write_42 may not have been initialized.
if (_jspx_eval_bean_write_42 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
Is there a maximum number of variables I can use?
I am using Struts running on Tomcat.
Thanks
Tim
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No there's no artificial limit. Your best bet might be to look at the java servlet generated by the container for your page to see what it it's complaining about.
hth,
bear
[ March 21, 2003: Message edited by: Bear Bibeault ]
 
Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I realize from <bean:write...> that this is a Struts question. You may get more help by posting it in "Java Frameworks" forum.
Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!