Hi, I am having 2 doubts :
1) How to validate a Date format in Struts 2 I have my <action-class>-validation.xml like this : <field name="DOB"> <field-validator type="requiredstring"> <message>Please enter your Date of birth</message> </field-validator> <!-- Here I have to validate the format --> </field> 2) How to compare two fields I am having password and confirm password fileds. If both the filed values are not same, I want to display some error message. <field name="password"> <field-validator type="requiredstring"> <message>Please provide Password</message> </field-validator> <field-validator type="stringlength"> 1 10 <message>Password should be min of 1 and max of 10 letters</message> </field-validator> </field> <field name="Confirm Password (*)"> <field-validator type="requiredstring"> <message>Please confirm your password</message> </field-validator> </field> Thanks in advance, -- View this message in context: http://www.nabble.com/Struts-2-Validation-tp23421029p23421029.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org