I tried to create a simple page decorated with sitemesh, but now I'm running into the wall.
My setup first:
#decorators.xml
<?xml version="1.0" encoding="UTF-8"?>
<decorators>
<decorator name="basicLayout" page="/WEB-INF/views/layout.jsp">
<pattern>*</pattern>
</decorator>
</decorators>
Nothing special here
#web.xml
<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>*.jsp</url-pattern>
</filter-mapping>
Nothing special there
When I call the application index, it becomes decorated. When I click on the link that calls the controller that returns the view, the returned view is not issued. In fact, this only works for the welcome file at the moment. I tried a different decorator pattern, the result is either the same or an exception: D
Can someone give me a hint?
Thank!
source
share