See the velocity examples that ship with webwork, and also compare the velocity templates (in /template/xhtml) with the JSP templates in the same directory.
Velocity uses the velocity servlet, which allows the values to be looked up on the stack if they are not found in the context. You may want to have a look at the source for the WebWorkVelocityServlet.
Cheers,
Scott
Kelvin Tan wrote:
For JSP views, its simple enough to simply forward to them, since they are able to retrieve the required data to render.
Velocity templates are dumb and operate on a push-basis (except for the use of velocity tools), in the sense that they require objects to be placed in the context for them. What's the best practice for accomplishing this if forwarding from an action?
Regards,
Kelvin
--------
The book giving manifesto - http://how.to/sharethisbook
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
-- ATLASSIAN - http://www.atlassian.com Expert J2EE Software, Services and Support ------------------------------------------------------- Need a simple, powerful way to track and manage issues? Try JIRA - http://www.atlassian.com/software/jira
------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork