From: Lane S. <la...@op...> - 2005-04-13 15:02:31
|
Hi Marc, this is an intriguing idea and does not seem like such a bad way to circumvent the politics of "we use JSP". Furthermore, it would allow you to refactor existing JSPs into a WM system over time. This would be really helpful. In short, JSPs are an utter left turn on the road to productive and extreme development. It boggles and bambles my mind where Sun has taken Java during the last 7 years. -Lane Marc Palmer wrote: > Hi all, > > Continuing my JSP/JSF/EJB journey a little more today... I thought > that probably we should have a WM tag library for JSP to help those > poor JSP people out. > > Has somebody already done this? It should be relatively simple. > > I notice Velocity has it already: > > http://jakarta.apache.org/velocity/veltag.html > > Basically we're talking a simple tag or two to render WM content > within a JSP page, or to render an external WM template - i.e. in JSP > land pages could be reduced to a variant of: > > <%@ taglib uri="/WEB-INF/webmacro.tld" prefix="wm" %> > > <wm:template name"/mytemplates/rendertemplate.wm" /> > > You'd need a couple of helpers like Velocity's, to provide access to > scoped variables (JSP's #bean-like scoping mechanism) and wrap up the > context. > > What does the community think? > > I'd love to be able to go somewhere and "use JSP" but really be using > WM :) > > Cheers > -- Lane Sharman Providing Private and SPAM-Free Email http://www.opendoors.com 858-755-2868 |