Configuring Liberty for JavaServer Pages 2.3

You can configure Liberty for the JavaServer Pages (JSP) 2.3 feature, which provides full support for the JSP 2.3 specification.

About this task

To configure a Liberty server to run an application that is enabled for JSP 2.3, you must set the <jsp-2.3> feature.

Procedure

Update the server.xml file to add the <jsp-2.3> feature.
For example:
<featureManager>
	<feature>jsp-2.3</feature>
</featureManager>
Important:
  • The jsp-2.3 feature requires both the servlet-3.1 and el-3.0 features and when configured, causes these features to load.
  • You cannot use jsp-2.3 with the servlet-3.0 feature.
  • You can use other Java™ EE 6 features, such as JSF 2.0 and CDI 1.0, with the JSP 2.3 feature.
  • You can choose between the JSP 2.2 and JSP 2.3 feature implementations for each server instance, but you must consider any behavior changes. If the required behavior is contained only in the JSP 2.3 feature, then you must use the JSP 2.3 feature. If an existing application would be adversely affected by behavior changes in the JSP 2.3 feature, then use the JSP 2.2 feature to preserve the existing behavior for that application.
  • It is not possible to use both the JSP 2.2 and JSP 2.3 features in the same Liberty server. If both features are configured, it produces an error:
    CWWKF0033E: The singleton features jsp-2.3 and jsp-2.2 cannot be loaded at the same time. The configured features jsp-2.3 and jsp-2.2 include one or more features that cause the conflict.

See JavaServer Pages 2.3 feature functions to learn about changes in the JSP 2.3 feature.

Results

The JSP 2.3 feature is enabled and loads in the Liberty server at run time.