Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 1006 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 1006 Bytes

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