org.apache.velocity.tools.struts
Class FormTool
java.lang.Object
org.apache.velocity.tools.struts.FormTool
- All Implemented Interfaces:
- ViewTool
- public class FormTool
- extends java.lang.Object
- implements ViewTool
View tool to work with HTML forms in Struts.
Template example(s):
<input type="hidden" name="org.apache.struts.taglib.html.TOKEN" value="$form.token">
<input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel">
Toolbox configuration:
<tool>
<key>form</key>
<scope>request</scope>
<class>org.apache.velocity.tools.struts.FormTool</class>
</tool>
This tool should only be used in the request scope.
- Since:
- VelocityTools 1.0
- Version:
- $Id: FormTool.java 154929 2005-02-23 02:04:46Z marino $
- Author:
- Gabe Sidler
For complete documentation on this viewtool use the following link: FormTool
2
org.apache.velocity.tools.struts.FormTool