This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to populate an html:select with a collection from the action class. In my action class I populate an ArrayList with LabelValueBeans. I then do: selectForm.setNamesOptions(arrayList); return mapping.findForward("success");//which is back to the same page My jsp: <htmlptionsCollection name="selectForm" property="namesOptions"/> My struts-config: <form-property name="namesOptions" type="java.util.Collection" /> What am I doing wrong, how can I fix it? Thanks
The property of the select tag is corresponds to name select element on the form. The collection parm corresponds to the name of the collection. The two properties are from the bean that creates my collection. It just pulls them right in.