This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to validate a form, but it does not work. I am trying to do Automatic Validation. These are the steps that I took. 1: struts-config.xml <message-resources parameter="ApplicationResources"/> 2: turned on the validation <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/> </plug-in>
3: Validation.xml put validation rule in validation.xml
where property="nameFirst" is the name of field in jsp file. 4: public class ContactInfoBean extends ValidatorForm 5:In my jsp page I have <html:errors/> AND <html:form action="/contactInfoEdit" onsubmit="return validateContactInfoBean(this);">