View tool to work with URI links in Struts.
Template example(s):
<a href="$link.action.update">update something</a>
#set( $base = $link.forward.MyPage.anchor('view') )
<a href="$base.param('select','this')">view this</a>
<a href="$base.param('select','that')">view that</a>
Toolbox configuration:
<tool>
<key>link</key>
<scope>request</scope>
<class>org.apache.velocity.tools.struts.StrutsLinkTool</class>
</tool>
This tool should only be used in the request scope.
author: Gabe Sidler author: Nathan Bubna version: $Id: StrutsLinkTool.java 479724 2006-11-27 18:49:37Z nbubna $ |