aspose file tools*
The moose likes JSP and the fly likes Code too larger for the try block in Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Code too larger for the try block in Jsp " Watch "Code too larger for the try block in Jsp " New topic
Author

Code too larger for the try block in Jsp

sarma kiran
Ranch Hand

Joined: Jul 17, 2008
Posts: 30

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

Joined: Jan 10, 2002
Posts: 61413
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It could also be caused by too many static includes. Solutions include using dynamic includes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Code too larger for the try block in Jsp