Marco Tedone ([EMAIL PROTECTED]) wrote:
> Thank you Dan, your suggestions are inviting...In which cases can you use
> BeanUtils.copyProperties? Sorry for that question, I hadn't time to go
> trough the documentation, so If you can give me some insights, otherwise
> I'll wait until I'll have some
estigate on the
BeanUtils.copyProperties method.
Regards,
Marco
> -Original Message-
> From: Dan Allen [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 22, 2003 4:03 PM
> To: Struts Users Mailing List
> Subject: Re: Retrieving properties from a DynaValidatorForm
>
>
Thank you Robert, I tried and it works.
Marco
> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 22, 2003 11:19 AM
> To: Struts Users Mailing List
> Subject: RE: Retrieving properties from a DynaValidatorForm
>
>
> Marc
> The alternative is to use the request.getParameter("..") method,
> which is what I'm doing at present.
You definitly don't want to be doing this. First cast your form to
a DynaValidatorForm and then case each property as appropriate:
String name = (String) form.get("name");
...however,
I hav
Marco, you should be able to use the get().
String name = (String)form.get("name");
robert
> -Original Message-
> From: Marco Tedone [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 22, 2003 3:54 AM
> To: Struts-user-list
> Subject: Retrieving properties
Hi, I'm dealing with DynaValidatorForm. Everything works fine, until I come
in the Action after the validation and I need to retrieve my properties.
With the standard ActionForm I had simply to cast the right ActionForm type
for the parameter 'form' and then access the get/set methods in order to
r
6 matches
Mail list logo