struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: DynaValidatorActionForm
Date Wed, 02 Jul 2003 16:12:08 GMT
Hmm., just realised the name of the form here is actually the action 
mapping path. Should I be naming the forms in validation.xml after the 
action mappings then rather than the form-beans from struts-config?


Adam Hardy wrote:
> I set up the Validator to do automatic validation with normal action 
> forms and it worked fine.
> 
> Now I'm trying to incorporate dynaforms but I'm not having any luck. I'm 
> not getting  server-side validation carried out.
> 
> I see from delving into the source code for struts and commons-validator 
> that the DynaValidatorAction form .validate() method is being called, 
> but that the following line:
> 
>  Form form = resources.get(locale, formName);  (578)
> 
> returns a null form and so the validation is skipped.
> 
> I've obviously missed something out on the set-up and config, but what? 
> Can anybody cast a light on this? Meanwhile I'll carry on digging....
> 
> thanks
> Adam
> 
> (struts 1.1 & validator 1.0.2)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message