I'm sorry for that I haven't notice u r using struts 1... here is an article which sample code contains an example using struts1 and site mesh. http://www.onjava.com/pub/a/onjava/2004/09/22/sitemesh.html?page=3
regards. sa10 wrote: > > Thanks Ryan. > > Here is my web.xml could you please advise what I need to change? > > Thanks > > <?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"> > > <servlet> > <servlet-name>TestServlet</servlet-name> > <servlet-class>com.dibd.test.service.TestServlet</servlet-class> > <load-on-startup>2</load-on-startup> > </servlet> > > <servlet-mapping> > <servlet-name>TestServlet</servlet-name> > <url-pattern>/index.jsp</url-pattern> > </servlet-mapping> > > <filter> > <filter-name>sitemesh</filter-name> > > <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class> > </filter> > > <filter> > <description></description> > <display-name>MyDecorator</display-name> > <filter-name>MyDecorator</filter-name> > <filter-class>com.dibd.util.MyDecoratorFilter</filter-class> > </filter> > > <filter-mapping> > <filter-name>MyDecorator</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > <filter-mapping> > <filter-name>sitemesh</filter-name> > <url-pattern>/*</url-pattern> > <dispatcher>REQUEST</dispatcher> > <dispatcher>ERROR</dispatcher> > <dispatcher>FORWARD</dispatcher> > </filter-mapping> > > <!-- Standard 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> > > <!-- Standard Action Servlet Mapping --> > <servlet-mapping> > <servlet-name>action</servlet-name> > <url-pattern>*.do</url-pattern> > </servlet-mapping> > > > <!-- The Usual Welcome File List --> > <welcome-file-list> > <welcome-file>index.jsp</welcome-file> > </welcome-file-list> > > <!-- Sitemesh configuration for decorator --> > > <jsp-config> > <taglib> > <taglib-uri>MyTag</taglib-uri> > <taglib-location>/WEB-INF/tlds/myTag.tld</taglib-location> > </taglib> > > </jsp-config> > > </web-app> > ----- Blog: http://www.ryanwong.name Can Use: English, Chinese -- View this message in context: http://www.nabble.com/sitemesh-decorator-problem-with-struts-action-tp20116332p20161059.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]