Re: Spring/Struts usage
Will Glass-Husain <[email protected]> Wed, 4 Dec 2013 15:07:47 -0800
| Newsgroups | gmane.comp.jakarta.velocity.user |
|---|---|
| Message-ID | <CADDz7ZvwUFVNJymTmdPxYtNV=U1tjDdEfcd+A3ewOVVVQNosTg@mail.gmail.com> |
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 <[email protected]> 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 >