This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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: 63232

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:
subject: Code too larger for the try block in Jsp
It's not a secret anymore!