AW: [opencms-dev] JSTL 1.1

Martin Kuba makub at ics.muni.cz
Tue Mar 29 11:30:36 CEST 2005


Erik-Jan Spaans wrote:
> No, it is not necessary to define the taglib in web.xml anymore. The uri 
> is now resolved directly. Note that according to the 1.4 webapp xsd it 
> is not even possible anymore to add taglib elements!
> Did you include the right jstl/standard version? If you deployed the 1.0 
> version the import url is slightly different: the jsp part is not yet 
> there. So if you reference the new 1.1 uri, and deployed the 1.0 
> version, the uri cannnot be resolved and therefor the taglibs can not be 
> used.

I think the problem is that OpenCMS is defined as Servlet 2.3 application,
and for JSTL 1.1 you need Servlet 2.4 application. So edit the
web.xml and change:

<!DOCTYPE web-app
     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
         "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>


to:


<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 web-app_2_4.xsd"
     version="2.4">

Martin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub at ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------



More information about the opencms-dev mailing list