hi, i had use sitemesh in spring.
here my decorator.xml
the problem is when I had a url like this :Code:<?xml version="1.0" encoding="ISO-8859-1"?> <decorators defaultdir="/WEB-INF/decorators"> <decorator name="main" page="main.jsp"> <url-pattern>/*</url-pattern> </decorator> <decorator name="private" page="private.jsp"> <url-pattern>/*/admin/*</url-pattern> </decorator> </decorators>
https://localhost:8443/app/admin/user/list.htm
it apply the "main" decocator instead of "private" decorator. the CORRECT decorator should be "private". but it just not work. (It always work on url pattern of /* only, but not other)
I not sure am I configure the application correctly, I don't use sitemesh.xml, and i put a filter in web.xml like this:
I use sitemesh 2.3.Code:<filter> <filter-name>sitemesh</filter-name> <filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class> </filter> <filter-mapping> <filter-name>sitemesh</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
any idea ?
kiwi
----
happy hacking !


Reply With Quote