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

Websphere 6 >>Code too large in try block

Sundararaj Govindasamy
Ranch Hand

Joined: Dec 06, 2007
Posts: 46

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 SCWCD 1.5
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Websphere 6 >>Code too large in try block
It's not a secret anymore!