Re: Caution, a traitor in our midst!
Keats Kirsch <[email protected]>
| Newsgroups | gmane.comp.java.webmacro.user |
|---|---|
| Message-ID | <[email protected]> |
I did this a couple years ago, but I seem to have lost track of the code (probably lost in a disk crash last year). If anybody has a copy of it I'd appreciate it, otherwise, I don't think it took very long to create. Keats 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 > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click