Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Marco Tedone
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

RE: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Robert Taylor
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 from a DynaValidatorForm Hi, I'm

Re: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Dan Allen
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 have

RE: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Marco Tedone
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 Marco, you should be able to use

RE: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Marco Tedone
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 The alternative is to use the request.getParameter

Re: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Dan Allen
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