Differences between revisions 3 and 4
Revision 3 as of 2007-11-01 17:32:43
Size: 7484
Editor: NathanBubna
Comment:
Revision 4 as of 2009-09-20 22:06:04
Size: 7520
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
[wiki:VelocityTools2/VelocityStruts VelocityStruts] includes both the [wiki:VelocityTools2/GenericTools GenericTools] and [wiki:VelocityTools2/VelocityView VelocityView] and adds tools for use in Struts 1.x applications. These tools match the functions of the key Struts taglibs and provide access to Struts resources, messages, tiles, validation functions and more. [[VelocityTools2/VelocityStruts|VelocityStruts]] includes both the [[VelocityTools2/GenericTools|GenericTools]] and [[VelocityTools2/VelocityView|VelocityView]] and adds tools for use in Struts 1.x applications. These tools match the functions of the key Struts taglibs and provide access to Struts resources, messages, tiles, validation functions and more.
Line 5: Line 5:
The default configuration provided for [wiki:VelocityTools2/VelocityStruts VelocityStruts] is [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/tools.xml?view=markup here] and [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/tools.xml?view=markup here] and [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/tools.xml?view=markup here]. The default configuration provided for [[VelocityTools2/VelocityStruts|VelocityStruts]] is [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/tools.xml?view=markup|here]] and [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/tools.xml?view=markup|here]] and [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/tools.xml?view=markup|here]].
Line 23: Line 23:
  * commons-beanutils - core infrastructure, [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/MathTool.java?view=markup MathTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/SortTool.java?view=markup SortTool]   * commons-beanutils - core infrastructure, [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/MathTool.java?view=markup|MathTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/SortTool.java?view=markup|SortTool]]
Line 25: Line 25:
  * commons-lang - [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/EscapeTool.java?view=markup EscapeTool]
  * commons-validator - [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/ValidatorTool.java?view=markup  ValidatorTool]
  * servlet - all [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ VelocityView] and [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/ VelocityStruts] tools except [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewRenderTool.java?view=markup  ViewRenderTool]
  * ssl-ext - [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/SecureLinkTool.java?view=markup  SecureLinkTool]
  * struts-core - all [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/ VelocityStruts] tools
  * struts-taglib - [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/FormTool.java?view=markup  FormTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/SecureLinkTool.java?view=markup  SecureLinkTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java?view=markup  StrutsLinkTool]
  * struts-tiles - [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/TilesTool.java?view=markup  TilesTool]
  * velocity - [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ClassTool.java?view=markup ClassTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/AbstractSearchTool.java?view=markup  AbstractSearchTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java?view=markup  ContextTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ImportTool.java?view=markup  ImportTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/IteratorTool.java?view=markup  IteratorTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/LinkTool.java?view=markup  LinkTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/MultiViewsTool.java?view=markup  MultiViewsTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewRenderTool.java?view=markup  ViewRenderTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/SecureLinkTool.java?view=markup  SecureLinkTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java?view=markup  StrutsLinkTool], [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/MessageTool.java?view=markup  MessageTool],
  * commons-lang - [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/EscapeTool.java?view=markup|EscapeTool]]
  * commons-validator - [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/ValidatorTool.java?view=markup|ValidatorTool]]
  * servlet - all [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/|VelocityView]] and [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/|VelocityStruts]] tools except [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewRenderTool.java?view=markup|ViewRenderTool]]
  * ssl-ext - [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/SecureLinkTool.java?view=markup|SecureLinkTool]]
  * struts-core - all [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/|VelocityStruts]] tools
  * struts-taglib - [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/FormTool.java?view=markup|FormTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/SecureLinkTool.java?view=markup|SecureLinkTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java?view=markup|StrutsLinkTool]]
  * struts-tiles - [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/TilesTool.java?view=markup|TilesTool]]
  * velocity - [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ClassTool.java?view=markup|ClassTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/AbstractSearchTool.java?view=markup|AbstractSearchTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java?view=markup|ContextTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ImportTool.java?view=markup|ImportTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/IteratorTool.java?view=markup|IteratorTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/LinkTool.java?view=markup|LinkTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/MultiViewsTool.java?view=markup|MultiViewsTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ViewRenderTool.java?view=markup|ViewRenderTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/SecureLinkTool.java?view=markup|SecureLinkTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java?view=markup|StrutsLinkTool]], [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/MessageTool.java?view=markup|MessageTool]],
Line 35: Line 35:
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/ActionMessagesTool.java?view=markup  ActionMessagesTool] - For accessing/displaying Struts action messages.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/ErrorsTool.java?view=markup  ErrorsTool] - For accessing/displaying Struts error messages.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/FormTool.java?view=markup  FormTool] - For working with HTML forms in Struts apps.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/MessageResourcesTool.java?view=markup  MessageResourcesTool] - Abstract view tool that provides access to Struts message resources.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/MessageTool.java?view=markup  MessageTool] - Provides methods to render Struts application resources (for i18n and other textual content access).
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/SecureLinkTool.java?view=markup  SecureLinkTool] - For using Struts SSL Extensions. It has the same interface as [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java?view=markup  StrutsLinkTool] and can function as a substitute if Struts 1.x and SSL Ext are installed.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java?view=markup  StrutsLinkTool] - Subclass of [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/LinkTool.java?view=markup  LinkTool] for creating URI links in Struts by adding support for Struts actions and forwards.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/TilesTool.java?view=markup  TilesTool] - For using Struts-Tiles (not for Tiles 2!) in Velocity.
 * [http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/ValidatorTool.java?view=markup  ValidatorTool] - Uses Struts-Validator to produce client side javascript validation for your forms.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/ActionMessagesTool.java?view=markup|ActionMessagesTool]] - For accessing/displaying Struts action messages.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/ErrorsTool.java?view=markup|ErrorsTool]] - For accessing/displaying Struts error messages.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/FormTool.java?view=markup|FormTool]] - For working with HTML forms in Struts apps.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/MessageResourcesTool.java?view=markup|MessageResourcesTool]] - Abstract view tool that provides access to Struts message resources.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/MessageTool.java?view=markup|MessageTool]] - Provides methods to render Struts application resources (for i18n and other textual content access).
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/SecureLinkTool.java?view=markup|SecureLinkTool]] - For using Struts SSL Extensions. It has the same interface as [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java?view=markup|StrutsLinkTool]] and can function as a substitute if Struts 1.x and SSL Ext are installed.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java?view=markup|StrutsLinkTool]] - Subclass of [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/LinkTool.java?view=markup|LinkTool]] for creating URI links in Struts by adding support for Struts actions and forwards.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/TilesTool.java?view=markup|TilesTool]] - For using Struts-Tiles (not for Tiles 2!) in Velocity.
 * [[http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/struts/ValidatorTool.java?view=markup|ValidatorTool]] - Uses Struts-Validator to produce client side javascript validation for your forms.

Overview

VelocityStruts includes both the GenericTools and VelocityView and adds tools for use in Struts 1.x applications. These tools match the functions of the key Struts taglibs and provide access to Struts resources, messages, tiles, validation functions and more.

Default Configuration

The default configuration provided for VelocityStruts is here and here and here.

Dependencies

TODO: just link to an anchor in a comprehensive dependencies overview page?

Tools

  • ActionMessagesTool - For accessing/displaying Struts action messages.

  • ErrorsTool - For accessing/displaying Struts error messages.

  • FormTool - For working with HTML forms in Struts apps.

  • MessageResourcesTool - Abstract view tool that provides access to Struts message resources.

  • MessageTool - Provides methods to render Struts application resources (for i18n and other textual content access).

  • SecureLinkTool - For using Struts SSL Extensions. It has the same interface as StrutsLinkTool and can function as a substitute if Struts 1.x and SSL Ext are installed.

  • StrutsLinkTool - Subclass of LinkTool for creating URI links in Struts by adding support for Struts actions and forwards.

  • TilesTool - For using Struts-Tiles (not for Tiles 2!) in Velocity.

  • ValidatorTool - Uses Struts-Validator to produce client side javascript validation for your forms.

VelocityTools2/VelocityStruts (last edited 2009-09-20 22:06:04 by localhost)