Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The DWR plugin

Excerpt

provides integration with the Ajax framework Direct Web Remoting

.

This plugin works by allowing DWR to execute a Struts 2 action and return any validation errors.

Features

  • Ajax validations using DWR

Usage

To expose Struts 2 validations via DWR, add this to your DWR configuration:

Wiki Markup
{snippet:id=dwrConfiguration|javadoc=true|lang=xml|url=struts2/plugins/dwr/src/main/java/org/apache/struts2/validators/DWRValidator.java}

Settings

This plugin doesn't support any global settings.

Installation

To install, simply include the DWR Plugin in your WEB-INF/lib directory. Ensure that DWR has been correctly installed and configured.