This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Code too large for try statement  RSS feed

 
Mini Sarin
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a JSP which includes many JSP pages. I am using @include for including the pages. Now at run time I get the error:-
'code too large for try statement', because the code within try/catch exceeds 64 kb.
I know jsp:include would be a solution for this, but I do not want to use that, because if I do I would have to import many files separately in all the pages and pass lot of request parameters to each jsp.

Is there another solution for this problem?
I also tried

'<jsp-param>
<param-name>noTryBlocks</param-name>
<param-value>true</param-value>
</jsp-param>'

in the deployment descriptor, but this doesn't seem to work.

Thanks
Mini
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The solution would be to refactor your JSP to modern standards in which the majority of processing is done in a servlet controller prior to forwarding to a much smaller JSP.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!