You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Martyn Hiemstra <m....@minihouse.eu> on 2009/05/08 14:08:55 UTC
Spring MVC + multiple velocity layout support
Hi Everybody,
I am using Spring MVC together with Velocity. The view resolver supplied
with Spring didn't support multiple layouts. I have made my own view
resolver which does support it. You can be read it at the following URL:
http://forum.springsource.org/showthread.php?t=71320
Yours sincerly,
Martyn Hiemstra
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: Spring MVC + multiple velocity layout support
Posted by Martyn Hiemstra <m....@minihouse.eu>.
Hi Paul
I was used to Sitemesh and it allowed URL mapping in the config file.
This way the creator of the page doesn't have to bother with the layout.
I agree that you shouldn't need anything special but I wanted to share
this just in case someone might want it.
Martyn Hiemstra
> Spring MVC just sets the default layout. If you want other layouts
> you just have to set $layout to the layout you want to use for your
> page. You shouldn't need anything special.
>
> Paul Sundling
> Senior Software Engineer
> Sony Media Software and Services
>
> Martyn Hiemstra wrote:
>> Hi Everybody,
>>
>> I am using Spring MVC together with Velocity. The view resolver
>> supplied with Spring didn't support multiple layouts. I have made my
>> own view resolver which does support it. You can be read it at the
>> following URL:
>> http://forum.springsource.org/showthread.php?t=71320
>>
>> Yours sincerly,
>> Martyn Hiemstra
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
>> For additional commands, e-mail: dev-help@velocity.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: Spring MVC + multiple velocity layout support
Posted by "Paul Sundling (Webdaddy)" <tk...@tkz.net>.
Spring MVC just sets the default layout. If you want other layouts you
just have to set $layout to the layout you want to use for your page.
You shouldn't need anything special.
Paul Sundling
Senior Software Engineer
Sony Media Software and Services
Martyn Hiemstra wrote:
> Hi Everybody,
>
> I am using Spring MVC together with Velocity. The view resolver
> supplied with Spring didn't support multiple layouts. I have made my
> own view resolver which does support it. You can be read it at the
> following URL:
> http://forum.springsource.org/showthread.php?t=71320
>
> Yours sincerly,
> Martyn Hiemstra
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org