Method code ... exceeds 65535 bytes limit
Inside jsp, I have a small header:
<%@ page import="java.util.*"%>
<% HttpSession CurrentSession =
request.getSession();
...
%>
... and great html
<html>
...
</html>
If I try to read it as it is, I get the error message "... exceeds the limit of 65535 bytes." I need to break it. Since I am new to java, I cannot figure out how to do this. Could you please point me to the path?
The JSP is converted to a regular Java servlet source, and some generated method is too large because there is a limit of 64 Kbytes (bytecode) for the length of the method.
If possible, changing static enables (really embeds another JSP source) with speakers turned on.
(, , ) , . , HTML <tr>:
<%@
void tableRow(String... cellValues) {
%><tr><%
for (String cellValue : cellValues) {
%> <td><%= cellValue %></td>
<%
}
%></tr>
<%
}
%>
...
<%
tableRow("one", "unu", "un");
tableRow("two", "du", "deux");
tableRow("three", "tri", "trois");
%>
P.S.
, ,
createResultsTable.
A standard action <jsp:include page="foo.html" %>can be used to include content at runtime - see some random documentation .