Re: Having difficultly getting started with sitemesh & spring mvc

Scott Farquhar <[email protected]> Fri, 23 Sep 2005 03:44:37 +1000
Newsgroups gmane.comp.web.sitemesh.general,gmane.comp.lang.pnuts.user
Message-ID <[email protected]>
Richard,

On Thu, Sep 22, 2005 at 11:48:22AM -0500, Richard Osbaldeston wrote:
> Just trying to add Sitemesh into an exiting Spring MVC app and not having a fun time getting things working. At the moment I'm not trying to do anything exciting, just decorating the index page would be a start. I've got sitemesh and the filter installed and running, but whats happening is I get a blank page of zero length as a result every time. Been banging my head against this for a couple of hours now and I just can't see whats going wrong.
> 
> My web.xml filters are setup like this:
>     <filter-mapping>
>         <filter-name>sitemesh</filter-name>
>         <url-pattern>*.jsp</url-pattern>
>     </filter-mapping>

Does mapping to * help at all?  *.jsp means that it will get called on
the forward from Struts, which isn't necessarily what you want.  The
sitemesh filter should also be first in you mappings, before struts.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]