FormTool

Last Updated: Jun 17, 2024
documentation for the dotCMS Content Management System
Deprecated

Viewtool to work with HTML forms in Struts.


Important:

dotCMS uses the Struts 1 Forever package, which fixes all known security issues with Apache Struts, and which is continually maintained and patched.


The following example shows how the FormTool viewtool is mapped in the toolbox-xml file:

    <tool>
        <key>form</key>
        <scope>request</scope>
        <class>org.apache.velocity.tools.struts.FormTool</class>
    </tool>

Example

This tool should only be used in the request scope.

 <input type="hidden" name="com.dotcms.repackage.org.apache.struts.taglib.html.TOKEN" value="$form.token">
 <input type="submit" name="com.dotcms.repackage.org.apache.struts.taglib.html.CANCEL" value="Cancel">

On this page

×

We Dig Feedback

Selected excerpt:

×