Caution, a traitor in our midst!

Marc Palmer <[email protected]>
Newsgroups gmane.comp.java.webmacro.user
Organization AnyWare Ltd.
Message-ID <[email protected]>
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

-- 
Marc Palmer    [email protected]
			
Wangjammers - Java, J2ME and Web Consultants
   ~ http://www.wangjammers.org/



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.