Why JSP file can not be more than 64 k
jsp
Solution
Java has a 64k limit on the size of methods. So when jsp is converted to _jspService method and if method has exceeded the 64kb limit you get "JSP file size limit exceeds..."
But you can overcome this issue is by using dynamic include. For example, if you are using
<%@ include file="jspPage1.jsp" %> (static include) or extract the content of existing jsp page to newJsp page and
replace this to
<jsp:include page="newJspPagee.jsp" /> (dynamic include).
You can find more information here.
Problem
When i am writing a JSP file, i am getting error that it should n't be more than 64 kilo Bytes like that , then I break the code to to different files , now code is working why that limit is there for JSP.