This page is still unfinished. For details on configuring the VelocityViewTag, you can follow most of the instructions for the VelocityViewServlet and of course on the configuration pages. Help finishing this is welcome!
This is a JSP tag that allows you to use Velocity and VelocityTools from within a JSP page or tag. There are many ways to use this tag. This simplest is to have it process an external template using the current page context. Assuming you have a template called "foo.vm" that can be found by your resource loader(s) that looks like this:
This tag can process that template by doing:
VTL in the body of the tag:
or combine both by first processing the body of the tag, then inserting the results of that into the context for the separate template as $bodyContent:
You can also store the results of any of the options above into a variable of any name and scope (default scope is "page"):