Ted Husted wrote: >Pete Carapetyan wrote: > >>Expresso has implemented that class. It is coincidentally named exactly the same >>name. Seems to work well, but right now it only serves up three of the many >>possibilities. >> > > >What does it do? > >To help Gabe and Geir get started on the Velocity Servlet for Struts, I >whipped up a ContextHelper class that exposed all the framework >components through a single bean in the request. Gabe was able to use >this as a model for his own servlet. I believe that the "X2" servlet in >the article does basically the same thing. > A ViewHandler is a class that would take the generic 'view details' from Struts, e.g. ActionForward and produce a view. Currently this code is coded in Struts in the RequestProcessor. To support XSLT transforms, we'd need a special request processor that used an ActionForward subclass to produce it's output..
>For JSPs Struts bundles the RequestUtils class, which is basically a >view helper for custom tags. But I think we could move toward providing >a generic view helper object in the request that the Struts tags could >use, and would also be useful in JSTL expressions, "straight" JSPs, >Velocity templates, and basically any presentation layer that access >objects in the request. > >This would also make it easier to write specialized servlets that needed >to provide its own objects to the presentation layer. > >-- Ted Husted, Husted dot Com, Fairport NY USA. >-- Java Web Development with Struts. >-- Tel +1 585 737-3463. >-- Web http://www.husted.com/struts/ > Is processActionForward/processForward the only 'view handling stuff' in Struts 1.1? -- dIon Gillard, Multitask Consulting http://www.multitask.com.au/developers -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

