hai, in struts form validation,we do two ways. 1.writing the code in ActionForm class 2.or using the validator-rule.xml and validation.xml file. give the simple eg.