Try the <html:optionsCollection> tag... <html:optionsCollection name="empForm" property="salaryList" label="salaryLabel" value="salaryValue"/>
Niall ----- Original Message ----- From: "struts lover" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 07, 2004 3:56 PM Subject: jstl and struts tag problem > Hello Everyone, > > I have this problem related to tags. > > I am using <c:set> to set the ActionForm to some > variable, and dont ask why :). > > And now I want to access a collection on the form for > the drop down list. How do I do this? > > I am doing as follows : > > <c:set var="empForm" value="${employeeForm}"/> > > Now further in my JSP, I am doing this for my drop > down: > > <html:options collection="empForm.salaryList" > property="salaryValue" labelProperty="salaryLabel"/> > > Why is it not working?? > Any help would be appreciated. > > Thanks > > > > > __________________________________ > Do you Yahoo!? > The all-new My Yahoo! - What will yours do? > http://my.yahoo.com > > --------------------------------------------------------------------- > 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]