My ActionForm has the following field.
//form private ArrayList<String> chargeIds = new ArrayList<String>(); public ArrayList<String> getChargeIds() { return chargeIds; } public void setChargeIds(ArrayList<String> chargeIds) { this.chargeIds = chargeIds; }//form
And in my jsp I wrote as below: -
//jsp .... <html:form action="/PurchaseOrderAction" styleId="defaultForm"> <table> <logic:iterate id="element" name="<%= Constants.SHOPPING_ORDER_CART_ITEMS %>" type="mypackage.ItemBean" > <tr><td> <logic:Equal name="element" property="promotedItem" value="true"> <html:select property="chargeIds" styleClass="transperentList" indexed="true"> <html:options collection="<%=Constants.ALL_CHARGES %>" property="key" labelProperty="name" /> </html:select> </logic:Equal> <logic:notEqual name="element" property="promotedItem" value="true"> <bean:write name="element" property="chargeName"/> </logic:notEqual> </tr></td> ..... //jsp
I get jsp filled out properly ... but when I submit the form .. I don't get any value in the arraylist of my formbean.
any idea how? I use struts 1.3 (unfortunately, I could not update, since the project started a very long time ago, and I'm a new member of the team).
Thanks.
Sarjith
source share