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