File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts 2 - Global Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 - Global Validation" Watch "Struts 2 - Global Validation" New topic
Author

Struts 2 - Global Validation

arulmani shankar
Greenhorn

Joined: Jan 28, 2010
Posts: 1
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

Joined: Sep 29, 2008
Posts: 12617

http://struts.apache.org/2.x/docs/validation.html#Validation-RegisteringValidators
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 - Global Validation
 
Similar Threads
struts-blank.war importing
How to practice struts in Eclipse
Validation Problem #2
Exception while loading the validation.xml in strusts
Struts Validation problem