Struts2 checkboxes returning values in Action class

Im pretty new to struts2, so Im trying to post everything you need to understand my problem,Your help is much appreciated. try to be more clear, i’m in lack of ideas in this problem, even it sounds like a classic .

<s:checkbox name=“selectedIndex” theme=“simple” >
</s:checkbox>
I have dynamic number of checkboxes in my JSP.Lets say i have three checkbox in my jsp.Then if user select first and second checkbox then i want a array in action class whose element is {1,2}.If user select first and third checkbox then i want a array in action class whose element is {1,3}.How can i do it in struts2?

i have getter and setter in action class as:
public String getSelectedIndex() {
return selectedIndex;
}

public void setSelectedIndex(String selectedIndex) {
this.selectedIndex = selectedIndex;
}

so actionClass give me true and false.

In the followin code List1(Stored in session object) is list of StatusDTOs and getter,setter are following
element of StatusDTO is
:-
public boolean getIsDisabled()
{
return this.isDisabled;
}

public void setIsDisabled(boolean isDisabled)
{
this.isDisabled=isDisabled;
}

public int getSerialNo()
{
return this.serialNo;
}

public void setSerialNo(int serialNo)
{
this.serialNo=serialNo;
}
Actual code in jsp is
<%
ArrayList temp=(ArrayList)ActionContext.getContext().getSession().get(“List1”);
Iterator itr=temp.iterator();
while(itr.hasNext())
{
StatusDTO psd=(StatusDTO)itr.next();
System.out.println(“********”+psd.getSerialNo());
%>
<tr>
<td bgcolor=“#E6FAFB”>
<%=psd.getSerialNo()%>
</td>
<td bgcolor=“#E6FAFB”>
<%
if(psd.getIsDisabled())
{
%>
<s:checkbox name=“selectedIndex” theme=“simple” disabled=“true”>
</s:checkbox>
<%
}
else
{
%>
<s:checkbox name=“selectedIndex” theme=“simple” value=“1”>
</s:checkbox>
<%}
%>

</td>
</tr>
<% }
%>

Waiting for reply
Am I clear…