struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arulmani V A <>
Subject Struts 2 - Global Validation
Date Wed, 03 Feb 2010 20:37:23 GMT

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 : 
            <field property="EmployeeName" depends="mask">
                <msg name="mask" key="errors.invalid" />
                <arg position="0" key="label.EmployeeName" />
Any help in this regard will be greatly appreciated.


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message