struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mano Dasanayaka" <>
Subject Struts2 CheckBox tag inside an s:iterator
Date Tue, 04 Mar 2008 09:23:31 GMT
Hi All,

I have a jsp where we list down some dynamic checkboxes.
for this we use s:checkbox tag inside a s:iterator ,

<s:iterator value="packageList" id="entry" status="stat">

name="fullMarket" fieldValue="${entry.packageId}"
theme="simple" value="${fullMarket}" >



in my action class I have a string[] named fullMarket and all the required
getters and setters are provided there. Everything happens successfully,
when we submit the form ,,.i.e fullMarket  array comes with the selected

but as we try to pre populate this same set of checkboxes , I see all the
checkboxes  selected irrespective of the values I set in action class.

this.fullMarket =  new String[] {"3","4","5"};

Any one got an idea what's wrong with this implementation.,..,

Thanks In Advance



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message