title: JSP Page becomes too long to get compile
body: <p>I have a JSP page . With the course of time it has become very long somehow. </p>
  
  <p>Recently i was compiling the jsp page and i got an exception from the compiler that</p>
  
  <pre><code>   org.apache.jasper.JasperException: Unable to compile class for JSP: 
  
     An error occurred at line: 320 in the generated java file
     The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit
  
  Stacktrace:
  at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
  at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331)
  at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
  </code></pre>
  
  <p>What should I do to avoid this exception.?</p>