Waite" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Sunday, February 13, 2005 11:30 AM
Subject: Re: Using Struts Validator on Map-backed ActionForms
> Niall,
>
> Thanks again for the reply. I am afraid this is not going to work for
> me, however. The proble
Niall,
Thanks again for the reply. I am afraid this is not going to work for
me, however. The problem is I don't see how I can "do nothing
different than normal validation". Normal validation requires the
field names and validations to be declared in the validation.xml file.
I do not know in ad
There isn't anything different you need to do from normal validation.
http://struts.apache.org/userGuide/dev_validator.html
The only issue you might hit is if you want to validate according to the
Action Mapping's path, rather than the form name. Then you would need a
custom ActionForm - but that
Niall,
Thanks for the response. This is looking promising - excellent work, btw.
I have the Action and Struts communicating with this "form". Do you
have any example of how to apply the Validaror against it? Looking
for some samples but given how new this is it's hard to come by.
Thanks,
Andr
You could use a LazyDynaMap to do this (with Struts 1.2.4). LazyDynaMap is a
"wrapper" for a Map. Because its not an ActionForm Struts will wrap it in a
BeanValidatorForm, which you can use with Validator.
Just specify it in the struts-config.xml for your form.
In your action you can get the ac
5 matches
Mail list logo