hi I'm trying to use the validator framework of struts for the first time. (with struts 1.1)
I'm unable to make a noob example working.. I have a single form <html:form action='ui/base/author/save/SaveAs.do' target='_self' onsubmit=''> <fmt:message key="saveAs.title"/> calling SaveAsAction with a SaveAsForm SaveAsForm is extending ValidatorForm I added this in my struts-config <message-resources parameter="ApplicationResources" null="false" /> <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathname" value="/WEB-INF/struts/validator-rules.xml"/> <set-property property="pathname" value="/WEB-INF/struts/validation.xml"/> </plug-in> in my validation.xml : <?xml version="1.0" encoding="ISO-8859-1" ?> <form-validation> <formset> <form name="SaveAsForm"> <field property="name" depends="required,minLength"> <!--msg name="mask" key="logon.username.maskmsg"/--> <arg0 key="error.noSelection"/> <var> <var-name>minLength</var-name> <var-value>3</var-value> </var> </field> </form> </formset> </form-validation> I know my validate() method is called public ActionErrors validate(ActionMapping mapping,HttpServletRequest r){ Logger.log(this.getClass().getName()); return super.validate(mapping,r); } but it not seem to validate with minLength basic validator Does i have to add something in web.xml ? how i can have more print info from struts about possible errors of configuration ? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]