Rob Jellinghaus wrote:
 > Is there consensus that making Struts more presentation-pluggable, or
 > in some other way more amenable to using other presentation
 > frameworks, is the direction Struts should go?

        From my point of view, Struts is not that much tied into JSP than it 
seems. Actually, plugging in another view manager seems pretty 
straight-forward.

        Let's look at Velocity for example: instead of forwarding to a ".jsp" 
from withing actions, forward to a ".vm". Have a servlet mapping that 
sends all ".vm" requests to a "VelocityServlet" that prepares the 
context and loads the template.

        Actually, I've actually seen a .war around (I think it was in one of the 
lists) that shows the Struts example application (from 1.0) working with 
Velocity templates instead of JSP.

        Struts has a lot of funcionality implemented if you want to use JSP (look 
at all the tags, for example), but that does not mean it is tied to JSP 
and cannot be used with anything else currently. Plugging a new view 
engine is quite simple, taking the Velocity example as a starting point.

-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink cheap beer"


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

Reply via email to