I can't get Sitemesh to apply a decorator when I declare in my web.xml
Code:<servlet-mapping> <servlet-name>spring-web</servlet-name> <url-pattern>/spring/*</url-pattern> </servlet-mapping>
but it works when I use
Code:<servlet-mapping> <servlet-name>spring-web</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>
Some of my decorators.xml patterns
Also, the same code without the initial / and also with /spring/...Code:<pattern>/application/*</pattern> <pattern>/application/list*</pattern> <pattern>/application/*list*</pattern> <pattern>/*/application/*list*</pattern> <pattern>/**/*list*</pattern> <pattern>/*/application/list*</pattern> <pattern>/*/application/*list*</pattern> <pattern>/*/application/*</pattern>
My web.xml (straight from appfuse)
Code:<!-- Context Configuration locations for Spring XML files --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:/spring/*.xml</param-value> </context-param> <filter> <filter-name>sitemesh</filter-name> <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class> </filter> <filter-mapping> <filter-name>sitemesh</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>spring-web</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:/spring/*.xml</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name>spring-web</servlet-name> <url-pattern>/spring/*</url-pattern> </servlet-mapping>


Reply With Quote