struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Can Zheng <can.zh...@gmail.com>
Subject Re: Urgent help needed on struts!
Date Thu, 01 Jul 2004 18:34:33 GMT
Hi,

As you are using a 2.4 version, add this to your <jsp-config> element
and you have el processing activated.

        <jsp-property-group>
            <url-pattern>*.jsp</url-pattern>
            <el-ignored>false</el-ignored>
            <scripting-invalid>false</scripting-invalid>
        </jsp-property-group>



On Fri, 2 Jul 2004 01:37:39 +0800, Ding Lei <dinglei@ipanel.cn> wrote:
> 
> Hi Mark,
>        Thank you very much for your fast reply.
>        I was told that there are much differences between 2.4 and 2.3,
> and I would like to use 2.4
> 
> > the 2.4 spec has a way of doing this in the web.xml
> Would you please tell me how to do this?
> 
> >
> > What does the rest ofit look like?
> > 
> Thanks in advance!
> Here's full version:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
> 
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    version="2.4">
> 
>  <!-- Action Servlet Configuration -->
>  <servlet>
>    <servlet-name>action</servlet-name>
>    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>    <init-param>
>      <param-name>config</param-name>
>      <param-value>/WEB-INF/struts-config.xml</param-value>
>    </init-param>
>    <load-on-startup>1</load-on-startup>
>  </servlet>
>  
>  <servlet>
>    <servlet-name>broadcastservlet</servlet-name>
>    <servlet-class>com.embisoft.embicast.servlets.BroadcastServlet</servlet-class>
>    <load-on-startup>1</load-on-startup>
>  </servlet>
>  
>  <servlet>
>    <servlet-name>RecordDownload</servlet-name>
>    <servlet-class>com.embisoft.embicast.servlets.RecordDownload</servlet-class>
>    <load-on-startup>1</load-on-startup>
>  </servlet>
> 
>  <filter>
>        <filter-name>cacheControl</filter-name>
>        <filter-class>com.embisoft.embicast.servlets.CacheControlFilter</filter-class>
>  </filter>
> 
>  <!-- Action Servlet Mapping -->
>  <servlet-mapping>
>    <servlet-name>action</servlet-name>
>    <url-pattern>*.do</url-pattern>
>  </servlet-mapping>
>  <servlet-mapping>
>    <servlet-name>broadcastservlet</servlet-name>
>    <url-pattern>/broadcast-server</url-pattern>
>  </servlet-mapping>
>  <servlet-mapping>
>    <servlet-name>RecordDownload</servlet-name>
>    <url-pattern>/RecordDownload</url-pattern>
>  </servlet-mapping>
> 
>  <filter-mapping>
>        <filter-name>cacheControl</filter-name>
>        <url-pattern>*.jsp</url-pattern>
>  </filter-mapping>
> 
>  <welcome-file-list>
>    <welcome-file>index.jsp</welcome-file>
>  </welcome-file-list>
> 
>  <jsp-config>
> 
>    <taglib>
>      <taglib-uri> http://java.sun.com/jsp/jstl/core </taglib-uri>
>      <taglib-location>/WEB-INF/tld/c-1_0-rt.tld</taglib-location>
>    </taglib>
> 
>    <taglib>
>      <taglib-uri> /WEB-INF/tld/c-1_0-rt.tld </taglib-uri>
>      <taglib-location>/WEB-INF/tld/c-1_0-rt.tld</taglib-location>
>    </taglib>
> 
>    <taglib>
>      <taglib-uri> /WEB-INF/tld/fn.tld </taglib-uri>
>      <taglib-location>/WEB-INF/tld/fn.tld</taglib-location>
>    </taglib>
> 
>    <taglib>
>      <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
>      <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
>    </taglib>
> 
>    <taglib>
>      <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>      <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
>    </taglib>
> 
>    <taglib>
>      <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
>      <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
>    </taglib>
> 
>  </jsp-config>
> 
> </web-app>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 




-- 
Best regards,

Can Zheng

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message