This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 - Global Validation" Watch "Struts 2 - Global Validation" New topic

Struts 2 - Global Validation

arulmani shankar

Joined: Jan 28, 2010
Posts: 1

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 ....

David Newton

Joined: Sep 29, 2008
Posts: 12617
I agree. Here's the link:
subject: Struts 2 - Global Validation
It's not a secret anymore!