I have checked them out, but the context is no different from the stack. At some point, the objects you need have to be placed on the stack. The question is, what is the best practice for where these objects should be added? In the action?
I've found that its often advantageous, when working with templating engines especially (which require two components- servlet + template), to separate view logic (retrieval of data to display) from action logic (which actually does something, ie modify data, etc). Wondering how WebWork supports this... Regards, Kelvin -------- The book giving manifesto - http://how.to/sharethisbook On Thu, 06 Feb 2003 23:27:21 +1100, Scott Farquhar said: >Kelvin, > >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 >> ------------------------------------------------------- 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