Jdk5.0 is used in was6.1, but ifCodeNew features including jdk5.0 may cause errors during compilation. So the applicationProgramAfter was is deployed, you need to set the corresponding JSP engine configuration parameters as follows:
"Jdksourcelevel" is a JSP engine parameter introduced in wasv6.1 that supports the new features of JDK 5. The default value of this parameter is 13. The following are optional parameter values for "jdksourcelevel:
13 (default)-This value disables all new language feature components of JDK 1.4 and JDK 5.0.
14-this value enables the assertion tool and disables all new language feature parts of JDK 5.0.
15-this value enables the assertion tool and all new language feature parts of JDK 5.0.
This parameter needs to add the following code by editing the WEB-INF/ibm-web-ext.xmi file settings for the deployed application after deployment is complete:
<Jspattributes XMI: Id = "jspattribute_0" name = "jdksourcelevel" value = "15"/>
The following is an example:
<? XML version = "1.0" encoding = "UTF-8" ?>
< Webappext: webappextension XMI: Version = "2.0" Xmlns: XMI = Http://www.omg.org/XMI
Xmlns: webappext = "Webappext. XMI" Xmlns: webapplication = "Webapplication. XMI" XMI: ID = "Webappextension_1"
Reloadinterval = "9" Reloadingenabled = "True" Defaulterrorpage = "Error. jsp" Additionalclasspath = ""
Fileservingenabled = "True" Directorybrowsingenabled = "False" Serveservletsbyclassnameenabled = "True"
Autorequestencoding = "True" Autoresponseencoding = "False"
<Webapp href = "WEB-INF/Web. xml # webapp_1" />
< Jspattributes XMI: ID = "Jspattribute_0" Name = "Jdksourcelevel" Value = "15" />
< Jspattributes XMI: ID = "Jspattribute_1" Name = "Usethreadtagpool" Value = "True" />
< Jspattributes XMI: ID = "Jspattribute_2" Name = "Verbose" Value = "False" />
< Jspattributes XMI: ID = "Jspattribute_3" Name = "Deprecation" Value = "False" />
< Jspattributes XMI: ID = "Jspattribute_4" Name = "Reloadenabled" Value = "True" />
< Jspattributes XMI: ID = "Jspattribute_5" Name = "Reloadinterval" Value = "5" />
< Jspattributes XMI: ID = "Jspattribute_6" Name = "Keepgenerated" Value = "True" />
<! -- <Jspattributes XMI: Id = "jspattribute_7" name = "trackdependencies" value = "true"/> -->
</ Webappext: webappextension >
Compile JSP into Java
<Jspattributes XMI: Id = "jspattribute_6" name = "keepgenerated" value = "true"/>
# Acegi Configuration
1) Start the WebSphere Console
2) In: Server -- Application Server -- select the application server you are using (server1 by default) -- Web Container settings -- Web Container -- Custom Attributes
3) create a new property: * Name: COM. IBM. ws. webcontainer. invokefilterscompatibility * value: true description: compatible with the acegi Filter
4) Save and restart the server