Changing from Servlet 2.3 to Servlet 2.4 (JSP 2.0)
From OpenCms Wiki
(Difference between revisions)
Line 9: | Line 9: | ||
</nowiki> | </nowiki> | ||
[[Image:Changing_from_Servlet_2.3_to_Servlet_2.4_web-xml.GIF]] | [[Image:Changing_from_Servlet_2.3_to_Servlet_2.4_web-xml.GIF]] | ||
+ | <br /><br /> | ||
+ | |||
2. in '''WEB-INF/opencms.tld''' enable for all TAG-Attributes rtexprvalue: | 2. in '''WEB-INF/opencms.tld''' enable for all TAG-Attributes rtexprvalue: | ||
<rtexprvalue>true</rtexprvalue> | <rtexprvalue>true</rtexprvalue> | ||
[[Image:Changing_from_Servlet_2.3_to_Servlet_2.4_opencms-tld.GIF]] | [[Image:Changing_from_Servlet_2.3_to_Servlet_2.4_opencms-tld.GIF]] | ||
+ | <br /><br /> | ||
+ | |||
3. restart tomcat | 3. restart tomcat | ||
+ | <br /><br /> | ||
+ | |||
4. Replace the OpenCms-Expressions in your Resources <br /> | 4. Replace the OpenCms-Expressions in your Resources <br /> | ||
e.g. "${opencms.uri}" into "${'${'}opencms.uri}" or since OpenCms 6.2.3 into "%(opencms.uri)") <br /> | e.g. "${opencms.uri}" into "${'${'}opencms.uri}" or since OpenCms 6.2.3 into "%(opencms.uri)") <br /> | ||
[[Image:Changing_from_Servlet_2.3_to_Servlet_2.4_opencmsexpressions.GIF]] | [[Image:Changing_from_Servlet_2.3_to_Servlet_2.4_opencmsexpressions.GIF]] | ||
+ | <br /><br /> | ||
+ | |||
5. JSTL: Update The Libraries to 1.1.2<br /> | 5. JSTL: Update The Libraries to 1.1.2<br /> | ||
[[Image:Changing_from_Servlet_2.3_to_Servlet_2.4_JSTL-LIBS.GIF]] | [[Image:Changing_from_Servlet_2.3_to_Servlet_2.4_JSTL-LIBS.GIF]] | ||
+ | <br /><br /> | ||
+ | |||
6. JSTL: Update TAGS-URI from "http://java.sun.com/jstl/..." to "http://java.sun.com'''/jsp'''/jstl/"<br /> | 6. JSTL: Update TAGS-URI from "http://java.sun.com/jstl/..." to "http://java.sun.com'''/jsp'''/jstl/"<br /> | ||
[[Image:Changing_from_Servlet_2.3_to_Servlet_2.4_JSTL-TAG-URIS.GIF]] | [[Image:Changing_from_Servlet_2.3_to_Servlet_2.4_JSTL-TAG-URIS.GIF]] |
Latest revision as of 02:15, 21 January 2007
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">
2. in WEB-INF/opencms.tld enable for all TAG-Attributes rtexprvalue:
<rtexprvalue>true</rtexprvalue>
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)")
5. JSTL: Update The Libraries to 1.1.2
6. JSTL: Update TAGS-URI from "http://java.sun.com/jstl/..." to "http://java.sun.com/jsp/jstl/"