ion: PWC6033: Error in Javac compilation for JSP
PWC6197: An error occurred at line: 4 in the jsp file: /index.jspPWC6199: Generated servlet error:strings in switch are not supported in -source 1.5 (use -source 7 or higher to enable strings in switch)
The fix is quite simple. You must include a
glassfish-web.xmlfile in your project, and set a couple of properties.
Please see the example below for a complete configuration.
The project will now compile and use JDK7.