Found my problem. I didn't have a getter method: public LabelValueBean getManufacturers(int index) { }
Thanks Chris -----Original Message----- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 2:05 PM To: 'Struts Users Mailing List' Subject: RE: LabelValueBeans I think 1.2. When I look at the properties in my editor on this object, I do see: setLabel(java.lang.String) setValue(java.lang.String) So how would one create a form element in their JSP to populate an array of LabelValueBeans? I'm getting the following error: javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:816) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) And my form uses <input type="hidden" name="labelvalue[0].label" value="3M"> <input type="hidden" name="labelvalue[0].value" value="4337"> Thanks Chris -----Original Message----- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 2:04 PM To: Struts Users Mailing List Subject: Re: LabelValueBeans Last time I looked there were getters but no setters. What version are you running? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx ----- Original Message ----- From: "CRANFORD, CHRIS" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, June 23, 2004 1:57 PM Subject: RE: LabelValueBeans > I saw an example somewhere using indexed properties like: > > labelvalue[index].label > labelvalue[index].value > > If I can get at the data this way, there is no way to set it? Chris > > -----Original Message----- > From: James Mitchell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 23, 2004 1:52 PM > To: Struts Users Mailing List > Subject: Re: LabelValueBeans > > > No, look at the source for the class and you'll see why. > > > > -- > James Mitchell > Software Engineer / Open Source Evangelist > EdgeTech, Inc. > 678.910.8017 > AIM: jmitchtx > > ----- Original Message ----- > From: "CRANFORD, CHRIS" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 23, 2004 1:31 PM > Subject: LabelValueBeans > > > > Is there anyway to have a property in my ActionForm class be defined > > as > > follows: > > > > private LabelValueBean[] myItems; > > > > And be able to have struts automatically populate this collection > > when the form is submitted? If so, how do I go about storing those > > values in the form so they're seen and populated properly upon > > submission? > > > > Thanks! > > Chris > > > > > > --------------------------------------------------------------------- > 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] > > --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]