Re: Having difficultly getting started with sitemesh & spring mvc
[email protected] Fri, 23 Sep 2005 12:05:04 -0400 (EDT)
| Newsgroups | gmane.comp.web.sitemesh.general,gmane.comp.lang.pnuts.user |
|---|---|
| Message-ID | <[email protected]> |
granted i am using velocity, but this is what my web.xml looks like and
i can fowarded pages w/o any issues.
i believe matt is correct that sitemesh won't decorate the error pages
in tomcat, although i thought a proposed work around was mentioned in
the wiki or one of his blog post comments.
you should probably just need to change the filter to look at *.jsp
patterns instead of *.vm patterns
<filter-mapping>
<filter-name>sitemeshFilter</filter-name>
<url-pattern>*.html</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>sitemeshFilter</filter-name>
<url-pattern>*.vm</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
-jae
> Thanks, might be worth a look, eventually got thing running this end. But
> now I'm scratching my head over the behaviour of SimpleFormControllers and
> SiteMesh. We've got forms that have differencing formview and successview
> properties.. but Sitemesh only wants to render the formview as the url
> after submittal dosn't change. In this case its a search field and returns
> a view with the searchfield & results so redirecting the successview from
> the controller dosnt help as spring tries to pass several hundred search
> results as a url parameter.
>
> Different views but the same url??
>
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.opensymphony.com/thread.jspa?threadID=7033&messageID=15791#15791
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]