2003. janu�r 15. 10:13 d�tummal Phase Web and Multimedia ezt �rtad:
> But, can the Validator be called/used from within the action class?

I use the Validator to check if the input is in the appropriate Domain (int, 
float, mask, date, etc) which can be checked "static". However there are some 
validations which require calls to the model. These are checked in the 
Action. And these are far more complex so cannot be declared in an xml.

> failure and my input forwards back to the jsp then the page explodes because
> the collections are empty. So, what I need to do is populate the collections
> in the ValidatorActionForm again

For this I put the form into session scope or I give the 'input' attribute for 
the mapping not the jsp but the action which prepopulates the SELECTs and 
forwards to the jsp.

Hth,

Tib

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to