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)
subject: JSP File Size Exceeded - 8050 lines of code in JSP - Help needed