velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Glass-Husain <wglasshus...@gmail.com>
Subject Re: Spring/Struts usage
Date Wed, 04 Dec 2013 23:07:47 GMT
Spring MVC provides a VelocityView which automatically handles the template
merging.

There's an example here:
http://wiki.apache.org/velocity/VelocityAndSpringStepByStep

and here:
http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/view.html

WILL


On Wed, Dec 4, 2013 at 10:01 AM, Mike Clovis <msc@trifecta.com> wrote:

> Hi ,
>                 I have a newbie question. When using a web framework like
> Spring you write controllers that are mapped to requests, add data to the
> response (Model Map) and return a uri to correct view. With velocity you
> could also write classes that would return the correct entities and add
> them to the velocity context. Then merge. How is this accomplished with
> Spring MVC? A small snippet would help. Do you call merge in the method w/o
> returning values through the map.
>
>
> Thanks in advance,
>
> Mike
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message