Try adding type="com.whatever.Engineer" > <html:select property="id" value="name" > > <html:options collection="workAuthForm.engineers" type="com.whatever.Engineer" <--------Here > labelProperty="name" property="id"/> > </html:select>
HTH James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the "Open Minded Developer Network" http://struts-atlanta.open-tools.org > -----Original Message----- > From: Eyassu, Daniel [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 26, 2002 10:22 AM > To: [EMAIL PROTECTED] > Subject: Html:options question help > > > IF I have an ActionFrom that looks like > > > public class WorkAuthForm extends ActionForm > { > private ArrayList engineers; > > public ArrayList getEngineers() > { > return this.engineers; > } > > public void setEngineers(ArrayList engineers) > { > this.engineers = engineers; > } > > ...... > } > > > And engineers are: > > public class Engineer > { > > private String id; > > private String name; > > /** Creates a new instance of Engineer */ > public Engineer() > { > } > > public void setId(String id) > { > this.id = id; > } > > public String getId() > { > return id; > } > > public void setName(String name) > { > this.name = name; > } > > public String getName() > { > return name; > } > } > > > why can"t I do the following: > > > <html:select property="id" value="name" > > <html:options collection="workAuthForm.engineers" > labelProperty="name" property="id"/> > </html:select> > > > Thanks > Dan > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>