Web tier: servlets, JSP, Web frameworks: JSP Error - method size exceeds 64 k java byte code limit

  1. Hi There,

    We have a JSP of around 3000 lines of code of which mostly is java code. When we try to run this page we are getting an error message like "method size exceeds 64 k java byte code limit".
    Any pointer will be helpful

  2. I generally don't like taglibs or methods defined in a JSP page, but using either one of these would probably solve your problem and 3000 lines per JSP is a LOT.

    Either declare logical parts of the JSP-Java code as methods with <%! %>, or write taglib classes for the same.