Differences between revisions 2 and 3
Revision 2 as of 2004-06-01 05:39:16
Size: 642
Editor: TimColson
Comment:
Revision 3 as of 2009-09-20 22:06:05
Size: 642
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

This is a collection of Velocimacros that are meant for use with VelocityStruts applications. these will generally make use of the VelocityStruts tools (using their recommended keys of course!), but needn't necessarily do so.


This macro can be used in vm files used as Tiles templates when the VelocityViewServlet is added in the Struts 1.1. application. It renders the value of the template attribute stored by the <put name="attribute" value""/> in the tiles-defs.xml. Enjoy.

#macro (tilesAttribute $attribute)
        $request.getAttribute("org.apache.struts.taglib.tiles.CompContext").getAttribute($attribute)
#end

VelocityStrutsMacros (last edited 2009-09-20 22:06:05 by localhost)