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

Code too larger for the try block in Jsp

 
sarma kiran
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

When i deploy the code in WAS server and when i run the application am getting code too large for the try statement.
Please provide me your valuable solutions.

Thanks in advance.

Regards,
Kiran
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ultimate solution is to bring your JSP pages up to modern standards by removing all Java code from the pages. Java code in pages (scriptlets) have been discredited for over 8 years now -- time to catch up.

Your web application should be structured such that all Java code executes in servlets and beans, and JSPs utilize JSTL and EL in place of antiquated scriptlets.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It could also be caused by too many static includes. Solutions include using dynamic includes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic