• Post Reply Bookmark Topic Watch Topic
  • New Topic

ArrayList is not populating in my form bean.  RSS feed

Sarjith Pullithodi
Posts: 1
Android Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

My ActionForm has the following field.

private ArrayList<String> chargeIds = new ArrayList<String>();
public ArrayList<String> getChargeIds() {
return chargeIds;
public void setChargeIds(ArrayList<String> chargeIds) {
this.chargeIds = chargeIds;

And in my jsp I wrote like below:-

<html:form action="/PurchaseOrderAction" styleId="defaultForm">
<logic:iterate id="element" name="<%= Constants.SHOPPING_ORDER_CART_ITEMS %>" type="mypackage.ItemBean" >
<logic:Equal name="element" property="promotedItem" value="true">
<html:select property="chargeIds" styleClass="transperentList" indexed="true">
<htmlptions collection="<%=Constants.ALL_CHARGES %>" property="key" labelProperty="name" />
<logic:notEqual name="element" property="promotedItem" value="true">
<bean:write name="element" property="chargeName"/>

I am getting jsp populated properly... but when i Submit the form.. i am not getting any value in the arraylist of my formbean.

any idea how? I am using struts 1.3 (unfortunately not able to update, as the project started from very long back, and i am a new member of the team).

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!