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. 

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/


Pete Carapetyan wrote:
> 
> >   But the article should not have
> > >>presented this solution as being in competition with Struts/JSP, in my
> > >>opinion.
> 
> <snip>
> 
> > What we really need is a pluggable 'ViewHandler' class which defaults to
> > JSP forward/redirect processing, but can easily handle XML/XSL, Velocity
> > etc....
> 
> 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.
> 
> --
> Pete Carapetyan
> http://webAppWriter.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to