Simple demo how to define your own naming schema for XML validation files
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
.travis.yml
README.md
pom.xml

README.md

Struts2 DMI aware validation

Build Status

Simple demo how to define your own naming schema for XML validation files. If DMI is enabled and method name is set the file name will be like this:

<ActionClass>-<actionAlias>_<methodName>-validation.xml

The whole magic happens in DMIAwareValidationInterceptor.java which simple overrides getValidationContext(ActionProxy proxy) to provide their own naming convention.

There are two endpoints defined:

  • /example/Login.action to show how to use context validation with !
  • /methods/Login!input.action to show classic example how validation works with DMI

Published under Apache License 2.0

Bitdeli Badge