Introduction - If you have any usage issues, please Google them yourself
struts validator to verify the framework 1, configuration:* join the international allocation in the struts-config.xml file, such as: <message-resources parameter= MessageResources />* International* The introduction of resource file validator plug-in struts-config . xml file, such as: <plug-in className= org.apache.struts.validator.ValidatorPlugIn > <set-property property = pathnames value = /WEB-INF/validator-rules.xml,/WEB-INF/validation.xml /> </ plug-in>* provide validation.xml and validator_rules.xml document, copy this file to the WEB-INF under 2, validator server-side validation* validation.xml configuration file 3, validator client-side validation (javascript))* configuration file* validation.xml in jsp page contains <html: javascript>* on the need to verify the definition of the form onSubmit incident, in which case the name of validate+ ActionForm name, such as: validateLoginForm