Hello everyone,
I've come across an error on a
jsp page that is using the new type of for loop from JDK 1.5.
Here's the code:
<% for (Operation op : Operation.values() ) %>
and here's the error:
[ServletException in:/web/jsp/admin/role/roleModify.jsp] Unable to compile class for JSP An error occurred at line: 102 in the jsp file: /web/jsp/admin/role/roleModify.jsp Generated
servlet error: Syntax error on token ":", ; expected An error occurred at line: 102 in the jsp
I have this same type of loop working in actual .java file; why won't it work here?
Do I have to import something into the .jsp so that I can use the new 1.5 syntax?
Any leads would be greatly appreciated!
Thanks,
bryan