wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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

Code too larger for the try block in Jsp

sarma kiran
Ranch Hand

Joined: Jul 17, 2008
Posts: 30


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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60810

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

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
Similar Threads
Steps needed to configure JProfiler
Invoking a webservice from a servlet
Session onject throwing exception when trying to save a object or begin a transaction
Question on Page Directive
code too large for try statement