Skip to content

Simple demo how to define your own naming schema for XML validation files

Notifications You must be signed in to change notification settings

lukaszlenart/struts2-dmi-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple demo how to define your own naming schema for XML validation files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published