I am getting this error in JSP of "code size too large for try catch block" and when I looked into the compiled java file it has this huge block of code translated from the included JSPs inside of a try catch block.
The lines of code for this JSP is 5700. I tried using include file and action jsp include. also its not working. can any one help me.
What kind of things do you have inside your JSP? In particular, do you have any code in there and what does it do? I'm having trouble picturing just HTML being that big. The answer to this will help us suggest a solution.
Modern JSPs should contain no code, with the code factored out into controllers called prior to the JSP invocation, or code abstracted into custom tags. Perhaps it is time to refactor your code using more modern standards?
MNaresh, Custom tags are fine. Can you give an example of what kind of things you do in the code of your JSP? Accumulating from other pages is fine. That still leaves me with the question of what they do.
You will get more concrete advice if you provide more concrete details about your pages.