Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

ArrayList always NULL when posting data in a form

cisco

2007-03-06

Replies:


Hello all.
I need some help.
I have a form which contains an ArrayList, this list has getters and setters
:

private ArrayList <DataProvRecDTO> entitylist = new
ArrayList<DataProvRecDTO>();
/**
* @return Returns the entitylist.
*/
public ArrayList<DataProvRecDTO> getEntitylist()
{
 return entitylist;
}

/**
* @param entitylist The entitylist to set.
*/
public void setEntitylist(ArrayList<DataProvRecDTO> entitylist)
{
 this.entitylist = entitylist;
}

I use this list on a JSP page :
<logic:iterate id="entity" indexId="ind" name="DataProvRecActionForm"
property ="entitylist"
type="com.hcfa.datamanager.datamodel.dto.DataProvRecDTO" >

<td class="resultTd" nowrap><html:text maxlength="2" size="3"
name="entity" property="jun" /></td>

The display of data works great. But when I make changes to the data and
submit the form, the array is always NULL.. Any help please..

Cisco..


 

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.