aspose file tools*
The moose likes JSP and the fly likes Websphere  6 >>Code too large in try block Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Websphere  6 >>Code too large in try block" Watch "Websphere  6 >>Code too large in try block" New topic
Author

Websphere 6 >>Code too large in try block

Sundararaj Govindasamy
Ranch Hand

Joined: Dec 06, 2007
Posts: 45

Hai
I am using Websphere 6.
I am coding a jsp page which have 27 includes(I cannot change this bad design ).Now i am using include directives.
So, 19000 lines in the try block of the generated servlet.
Now i am getting "code too large in the try block" exception while compiling.

Any solution for this other than using <jsp:include> ??
Because while i use <jsp:include> , then the images in the pages are not shown.

Folks please help me to solve this.


Former folding tailor
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

The real solution is to refactor your page to remove all processing and Java code to a servlet controller.

However, there is no reason that a <jsp:include> should prevent properly addressed image from displaying.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Websphere 6 >>Code too large in try block