JavaServer Pages 2.2
This feature enables support for Java Server Pages (JSPs) that are written to the JSP 2.2 specification. This framework simplifies the construction of user interfaces.
Enable this feature
To enable the JavaServer Pages 2.2 feature, add the following element declaration inside the featureManager element in the server.xml file:
<feature>jsp-2.2</feature>
Developing a feature that depends on this feature
If we are developing a feature that depends on the JavaServer Pages 2.2 feature, include the following item in the Subsystem-Content header in the feature manifest file for the new feature:
com.ibm.websphere.appserver.jsp-2.2; type="osgi.subsystem.feature"
Features that this feature enables
Features that enable this feature
API packages provided by this feature
- javax.el
- javax.servlet.jsp
- javax.servlet.jsp.el
- javax.servlet.jsp.jstl.core
- javax.servlet.jsp.jstl.fmt
- javax.servlet.jsp.jstl.sql
- javax.servlet.jsp.jstl.tlv
- javax.servlet.jsp.resources
- javax.servlet.jsp.tagext
SPI packages provided by this feature
Feature configuration elements
We can use the following elements in the server.xml file to configure the JavaServer Pages 2.2 feature:
- jspEngine
- JSP 2.2 configuration
Attribute name Data type Default value Description disableJspRuntimeCompilation boolean false Disable compilation of JSPs at runtime. disableResourceInjection boolean false Disable injection of resources into JSPs. extendedDocumentRoot string Directory that the JSP engine will search for additional JSP files to serve. jdkSourceLevel
- 17
- 18
- 15
- 16
- 13
- 14
15 Default Java source level for JSPs compiled by the JSP engine.
- 17
- 17
- 18
- 18
- 15
- 15
- 16
- 16
- 13
- 13
- 14
- 14
keepGenerated boolean false Keep Java source files generated for JSPs. prepareJSPs int When this attribute is present, all JSPs larger than the value (in kilobytes) are compiled at application server startup. Set this to 0 to compile all JSPs. recompileJspOnRestart boolean false Recompile JSPs after an application is restarted. JSPs are recompiled on first access. useImplicitTagLibs boolean true Allow JSPs to use jsx and tsx tag libs. useInMemory boolean false Generate Java source and classes in memory (without writing to disk).