• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP File Size Exceeded - 8050 lines of code in JSP - Help needed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a JSP File which holds more than 8050 lines of code. When we try to add new lines, the WAS server complains that the file has exceeded its maximum size.

Is there any solution available to add further lines to the JSP file? Any suggestions would be much appreciated...

We have tried JSP Fragments but it is not able to pass the values to and fro....

Thanks in advance...
 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Without knowing more about the structure of your page, it is hard to know the exact approach to take, but the general advice is: Make your JSP smaller.

- If you have large amounts of java/scriptlet code in your JSP, the logic into a java class and invoke it as a method.
- if you have large amounts of display logic, encapsulate it in a custom tag to do the rendering.
- Break the page up into multiple steps, or alternative branches. One JSP for each step/branch and a master JSP to forward/include the appropriate sections (or even better a servlet page controller)





 
The fastest and most reliable components of any system are those that are not there. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic