• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 - Global Validation

 
arulmani shankar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Any idea how to do global validation in Struts 2 ?

For example, in Struts 1, I can define all global regular expression validations in a file called validation-regexpr.xml such as :



The above global regular expressions can be reused in other validation files as follows :


I could not get information on how to do this in Struts 2, no luck with the Struts2 e-books also. Any help in this regard will be greatly appreciated ....

Arul
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!