Hi,

You don't need to import the tag libraries for EL etc.. only in your pages. 
However, the new schema will cause problems for your web.xml in other ways. 
Here is a valid web.xml

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

        <context-param>
                <param-name>contextConfigLocation</param-name>
                <param-value>/WEB-INF/applicationContext.xml</param-value>
        </context-param>

        <listener>
                <listener-class>
                        org.springframework.web.context.ContextLoaderListener
                </listener-class>
        </listener>
        
        <listener>
                <listener-class>
                        com.opensymphony.oscache.web.CacheContextListener
                </listener-class>
        </listener>     
        
        <listener>
                <listener-class>
                        
com.qas.newmedia.internet.core.framework.listener.ContextListener
                </listener-class>
        </listener>

    <filter>
        <filter-name>UrlRewriteFilter</filter-name>
        
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
        <init-param>
            <param-name>logLevel</param-name>
            <param-value>ERROR</param-value>
        </init-param>        
    </filter>
    
    <filter-mapping>
        <filter-name>UrlRewriteFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

        <servlet>
        <servlet-name>springFrontController</servlet-name>
            
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>

        <servlet-mapping>
        <servlet-name>springFrontController</servlet-name>
        <url-pattern>*.do</url-pattern>
        </servlet-mapping>
                
        <session-config>
                <session-timeout>10</session-timeout>
        </session-config>
        
        <mime-mapping>
                <extension>pdf</extension>
                <mime-type>application/pdf</mime-type>
        </mime-mapping>

        <welcome-file-list>
                <welcome-file>index.jsp</welcome-file>
                <welcome-file>index.html</welcome-file>
                <welcome-file>index.htm</welcome-file>
        </welcome-file-list>
        
        <!-- 
        <error-page>
                <error-code>404</error-code>
                <location>/views/errors/404.html</location>
        </error-page>   
        -->
        
        <error-page>
                
<exception-type>com.qas.newmedia.internet.core.page.exception.PageException</exception-type>
                <location>/jsp/errors/pageNotFound.html</location>
        </error-page>           
        
        <jsp-config>
        
                <taglib>
                        <taglib-uri>qas</taglib-uri>
                        <taglib-location>/WEB-INF/tld/qas.tld</taglib-location>
                </taglib>
                
                <taglib>
                <taglib-uri>oscache</taglib-uri>
                <taglib-location>/WEB-INF/tld/oscache.tld</taglib-location>
        </taglib>
                
                <taglib>
                <taglib-uri>spring</taglib-uri>
                <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
                </taglib>
                
                        
                <jsp-property-group>
                        <display-name>QAS.com</display-name>
                        <url-pattern>*.jsp</url-pattern>
                        <el-ignored>false</el-ignored>
                        <scripting-invalid>false</scripting-invalid>
                        <is-xml>false</is-xml>
                </jsp-property-group>
        </jsp-config>   
        
</web-app>


> -----Original Message-----
> From: Walther Hautermann [mailto:[EMAIL PROTECTED]
> Sent: 26 July 2005 10:00
> To: Tomcat Users List
> Subject: RE: tomcat 5.5.9, JSP, EL evaluation
> 
> 
> Hi Allistair,
> 
> Now the definition of the taglibs in the web.xml seems to be wrong.
> Could you provide me an example?
> 
> 
> Thx
> 
> -----Original Message-----
> From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
> Sent: mardi 26 juillet 2005 10:43
> To: Tomcat Users List
> Subject: RE: tomcat 5.5.9, JSP, EL evaluation
> 
> Hi,
> 
> 1. Check your JSP imports the c tag library
> 2. Check your web.xml schema is for J2EE 2.4
> 
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> 
> 3. You don't need to use c:out for this kind of thing. Just
> 
> ${users}
> 
> in the page works. Many people don't seem to realise this.
> 
> Allistair.
> 
> > -----Original Message-----
> > From: Walther Hautermann [mailto:[EMAIL PROTECTED]
> > Sent: 26 July 2005 09:37
> > To: [email protected]
> > Subject: tomcat 5.5.9, JSP, EL evaluation
> > 
> > 
> > Hi,
> > 
> >  
> > 
> > My jsp page contains a <c:out value="${users}"/>. The result is
> > ${users}. I had a look in the generated .java and it seems 
> > the ${users}
> > is not evaluated : _jspx_th_c_out_0.setValue(new 
> String("${users}"));
> > 
> >  
> > 
> > Is there something to configure with tomcat 5.5.9 to enable the
> > evaluation of the EL ?
> > 
> >  
> > 
> > Thanks for your help.
> > 
> > Walther
> > 
> > 
> 
> 
> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
> -------------------------------------------------------
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> -------------------------------------------------------
> </FONT>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to