Hey!
I am trying to populate a drop down list with values that I have in a Collection but it is not working. This is what I have so far in my JSP:
<html:select property="constName">
<html:options name="constituencies" property="constName" />
</html:select>
I have a Collection called constituencies stored in my session and it has javaBeans as elements in it. THese javabeans have a getConstName() attribute so the property="constName" in my tag should be ok.
However, I think the problem is that my Collection should be a javabean. I read on the struts website http://jakarta.apache.org/struts/userGuide/struts-html.html#options that the javabean represents a collection of other javabeans. How can I have a collection of other javabeans inside my bean?
I'd appreciate any help.
THanks,
Brian
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]