struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yaragalla Muralidhar <>
Subject validation problem
Date Thu, 25 Dec 2014 10:38:24 GMT
Hi i am having problem in turning on validations. I have written
"actionClass-validation.xml" file in the same package as action class.  but
the validations are not working. the following is my validation xml file.

<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.3//EN"

<field name="primaryDetails.branchId">
     <field-validator type="required">
       <message key="">Could not find!</message>
     <field-validator type="regex">
          <param name="regex"><![CDATA[[1-9]{0,40}]]></param>
       <message key="">Could not find</message>
 <field name="primaryDetails.patientName">
     <field-validator type="required">
       <message key="">Could not find!</message>



do i have to do something else to turn on validations?

*Thanks and Regards,*
Muralidhar Yaragalla.

* <>*

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message