This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Websphere 6 >>Code too large in try block

 
Sundararaj Govindasamy
Ranch Hand
Posts: 46
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64711
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic