Wednesday, April 09, 2008

Configure Velocity Macro with Struts2 and sitemesh

To define velocimacros in Struts2 using sitemesh, you would need to set init param to the sitemesh-velocity filter in web.xml



In you would need to declare whatever global velocity macro files like cited below.

# Velocity Macro libraries.
velocimacro.library = /WEB-INF/VM_global_library.vm

For more information on Velocimacro refer to


Post a Comment