From: Marc P. <ma...@an...> - 2005-04-12 08:44:01
|
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 wj...@wa... Wangjammers - Java, J2ME and Web Consultants ~ http://www.wangjammers.org/ |