Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with action includes  RSS feed

 
Sundararaj Govindasamy
Ranch Hand
Posts: 46
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Folks,
Earlier i used include directive in my application.Generated java was too big(20000 lines) , because there are 27 includes in a single jsp.This leaded to an runtime exception called "Code too big in try block".To solve this , I use action include instead of include directives.Now that problem solved.But i am facing a new problem.That is , my screen is painted with some green colour boxes (green backrounds for fields)and also images are not shown.
In the console there is an error called "internal server error" is thrown.
Please Help me to solve these issues.
Thanks in advance.
 
Anirban Basu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sundararaj Govindasamy:
because there are 27 includes in a single jsp.This leaded to an runtime exception called "Code too big in try block".


Do you require all includes everytime or they can be condition based?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Soudns like the time is right for you to refactor your JSPs and web apps using modern best practices. Your JSPs should be view-only components where all of the heavy work occurs in servlet controllers before the JSP is executed. This prevents the large, bloated, trouble-ridden JSPs that you are finding yourself saddled with.

You might find this article helpful.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!