<%!
privateenum Y { A, B, C }
%>
<%
out.print("hello " + Y.A);
%>
Will show an error highlight under "private enum Y" that states "Enum must not be local". The JSP page will compile and execute without error in Tomcat 6. The file also passes "Validate JSP" from the right-click mouse menu in IDEA. I am pretty sure it's valid JSP code.
Description
A JSP file such as:
<%!
privateenum Y { A, B, C }
%>
<%
out.print("hello " + Y.A);
%>
Will show an error highlight under "private enum Y" that states "Enum must not be local". The JSP page will compile and execute without error in Tomcat 6. The file also passes "Validate JSP" from the right-click mouse menu in IDEA. I am pretty sure it's valid JSP code.