Link: http://my.oschina.net/hunterli/blog/39767
Problem description:
By default, the JSP compiler uses the 1.3 specification to compile JSP files.
JSP, compilation will fail
Answer:
To ensure that your JSP is correctly compiled, add jdksourcelevel to the JSP attribute during packaging. The value is 15. This is the recommended method, if you cannot re-package and re-release the application, follow these steps:
Find the following two files:
<Was-Home>/profiles/export rv01/config/cells/<cellname>/applications/<appname>/deployments/<appname. War>/WEB-INF/ibm-web-ext.xmi
<Was-Home>/profiles/systrv01/installedapps/<nodename>/<appname. War>/WEB-INF/ibm-web-ext.xmi
Add the following line before </webappext: webappextension>:
<Jspattributes XMI: Id = "jspattribute_113" name = "jdksourcelevel" value = "15"/>
Save the file and restart the application. Delete the class file compiled by JSP at the same time:
<Was-Home>/profiles/program rv01/temp/<nodename>/<appname. War>/*. Class
For advanced version (6.1.0.15 or later), you can go to the was console Page Server> Application Server> [select the server to use]> Web Container Settings> Web Container> Custom properties to add configurations
com.ibm.ws.jsp.jdkSourceLevel = 13(default) or 14 or 15
Restart the was service.