...
For more information on Velocity itself, please visit the Velocity website.
Info |
---|
Velocity is very similar to FreeMarker, as both are template languages that can be used outside of a Servlet container. The framework uses FreeMarker internally since it has better error reporting, support for JSP tags, and a richer feature set. Developers may also like that FreeMarker supports JSP taglibs. However, both are good alternatives to JSP. |
...
Since the action context is resolved after the value stack, you can reference the variable without the typical preceding marker (#) that has to be used with the JSP safs:property
tag. Omitting the marker can be convenient, but it can also trip you up, if used carelessly.
Code Block | ||||
---|---|---|---|---|
| ||||
#wwurl#s-url "id=url "value=http://www.yahoo.com" Click <a href="${url}">here</a>! |
The SAF2Stuts2-Velocity integration layer provides several implicit variables.
...