File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 43

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.


SCJP 1.6 88% ;-)
SCWCD 1.5 97% ;-)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

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
 
Similar Threads
Bufferring
problem in jsp:include tag
Code too large for try statement
Embedding large generated HTML files to JSF
Jsp is taking more time when loading in weblogic server