I think it's a struts related issue. The type conversion needs to be done in the appropriate servlet.
Cheers, Nishit -----Original Message----- From: Vincent Massol [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 11:08 PM To: 'Cactus Users List' Subject: RE: Setting initial values for Integer[] DynaActionForms Hi Claire, Are you sure you wanted to send your question to the cactus mailing list? :-) I can't see the link with Cactus... Thanks -Vincent > -----Original Message----- > From: claire knowles [mailto:[EMAIL PROTECTED] > Sent: 26 January 2004 14:55 > To: [EMAIL PROTECTED] > Subject: Setting initial values for Integer[] DynaActionForms > > I can set initial values for String[] in a dynaActionForm in the > struts-config.xml however when I try to set initial values for Integer[] > I get the following error: > > 2004-01-26 13:40:49,224 [ERROR] RequestUtils: Error creating form bean > of class org.apache.struts.validator.DynaValidatorForm > org.apache.commons.beanutils.ConversionException: Cannot assign value > of type 'java.lang.String' to property 'ids' of type > '[Ljava.lang.Integer;' > > Config extract: > <form-bean name="form" > type="org.apache.struts.validator.DynaValidatorForm"> > <form-property name="id" type="java.lang.String"/> > <form-property name="name" type="java.lang.String"/> > <form-property name="ids" type="java.lang.Integer[]" initial="0"/> > <form-property name="countries" type="java.lang.String[]" > initial="UK"/> > </form-bean> > > Can someone please tell me where to look to do this or how to change my > struts config. > > Thanks > > Claire > > > ________________________________________________________________________ > > E-mail is an informal method of communication and may be subject to data > corruption, interception and unauthorised amendment for which Digital > Bridges Ltd will accept no liability. Therefore, it will normally be > inappropriate to rely on information contained on e-mail without obtaining > written confirmation. > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > > ________________________________________________________________________ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
