Changing from Servlet 2.3 to Servlet 2.4 (JSP 2.0)

From OpenCms Wiki
Jump to: navigation, search

INFO: This is not necessary for OpenCms 7.0 or above.

1. in WEB-INF/web.xml change the Header:

   <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
 

Changing from Servlet 2.3 to Servlet 2.4 web-xml.GIF


2. in WEB-INF/opencms.tld enable for all TAG-Attributes rtexprvalue:

<rtexprvalue>true</rtexprvalue>

Changing from Servlet 2.3 to Servlet 2.4 opencms-tld.GIF


3. restart tomcat


4. Replace the OpenCms-Expressions in your Resources
e.g. "${opencms.uri}" into "${'${'}opencms.uri}" or since OpenCms 6.2.3 into "%(opencms.uri)")
Changing from Servlet 2.3 to Servlet 2.4 opencmsexpressions.GIF


5. JSTL: Update The Libraries to 1.1.2
Changing from Servlet 2.3 to Servlet 2.4 JSTL-LIBS.GIF


6. JSTL: Update TAGS-URI from "http://java.sun.com/jstl/..." to "http://java.sun.com/jsp/jstl/"
Changing from Servlet 2.3 to Servlet 2.4 JSTL-TAG-URIS.GIF

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox