Try this...don't think it will work but sounds like you'll try anything now...
<nested:options id="employee" property="employeeList" labelName="employee.value.id" labelValue="employee.value.firstName"/> -----Original Message----- From: Darren Hill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 1:39 PM To: 'Struts Users Mailing List' Subject: RE: nested:optionsCollection Ok .. pretty ticked off now. According to http://www.keyboardmonkey.com/index.jsp, this should be easy. That suggested gave me ... javax.servlet.jsp.JspException: Cannot find bean under name firstName This has been the closest to getting anything to work. What gives? <nested:select property="id"> <nested:options property="employeeList"/> </nested:select> D. P.S. Still battling away at it. -----Original Message----- From: Vinh Tran [mailto:[EMAIL PROTECTED]] Sent: October 1, 2002 1:31 PM To: Struts Users Mailing List Subject: RE: nested:optionsCollection Try this... <nested:options property="employeeList" labelName="firstName" labelValue="employeeList.value.firstName"/> I've been successful getting the attributes out but only using <c:out> which means (at least this was the only way I could get it working) you can not use the Struts tags. Therefore you would have do something like this instead.. <logic:iterate id="employee" property="employeeList"> <option value="<c:out value="${employeeList.value.id}"/>"><c:out value="${employee.value.firstName}"/></option> </logic:iterate> If you get the first suggestion to work let me know. I have not been able to get it to work without using <c:out>. Vinh -----Original Message----- From: Darren Hill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 1:12 PM To: 'Struts Users Mailing List' Subject: RE: nested:optionsCollection Sorry Jason .. I get javax.servlet.jsp.JspException: Cannot create iterator for com.blah.blah.form.EmployeeForm@69d0cc error. Man ... I wish there was documentation somewhere about this. D. -----Original Message----- From: Taylor, Jason [mailto:[EMAIL PROTECTED]] Sent: October 1, 2002 12:43 PM To: 'Struts Users Mailing List' Subject: RE: nested:optionsCollection try <nested:options collection="employeeList" property="id" labelProperty="firstName"/> -----Original Message----- From: Darren Hill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 9:39 AM To: 'Struts Users Mailing List' Subject: RE: nested:optionsCollection Ok I'm close ... but this ... <nested:select property="id"> <nested:options property="employeeList"/> </nested:select> Gives me a list of the employee Objects ... how can I access the firstName and id? <nested:options property="employeeList" labelName="firstName" labelValue="id"/> doesn't work. D. -----Original Message----- From: Darren Hill [mailto:[EMAIL PROTECTED]] Sent: October 1, 2002 12:18 PM To: 'Struts Users Mailing List' Subject: nested:optionsCollection K ... so I have nested beans and all is well. I just want to know the syntax of creating a single select. My company bean contains an arraylist of employee beans ( everything works will so far ) ie. This works fine <nested:iterate property="employeeList"> <nested:text property="firstName"/> </nested:iterate> I want to produce this. <select name="employeeid"> <option value="1">Darren1</option> <option value="2">Darren2</option> <option value="3">Darren1</option> </select> using this ... <nested:select property="employeeList" > <nested:optionsCollection property="firstName" value="id" /> </nested:select> Obviously my syntax is wrong 'cause I get this ... javax.servlet.jsp.JspException: No getter method for property firstName of bean org.apache.struts.taglib.html.BEAN -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

