Allow me to answer my own question, before somebody tells me how stupid I am. 
I think the problem was my action wasn't set up correctly.  The following
snippets of jsp and java give me an array (xxx) containing the values that
were checked on the page.  In production, these fieldValues attributes would
obviously have user ids in them, rather than the hard-coded numbers like in
this example.

<s:form action="tobin">
    <s:checkbox name="xxx" label="1"  fieldValue="1"/>
    <s:checkbox name="xxx" label="2"  fieldValue="2"/>
    <s:checkbox name="xxx" label="3" fieldValue="3"/>
    <s:checkbox name="xxx" label="4" fieldValue="4"/>
    <s:checkbox name="xxx" label="5" fieldValue="5"/>
    <s:submit/>
</s:form>

-----------------------------

private int[] xxx;

@Override
public String execute() throws Exception {
    return SUCCESS;
}

public int[] getXxx() {
    return xxx;
}

public void setXxx(int[] xxx) {
    this.xxx = xxx;
}


tobinibot wrote:
> 
> If I may tag on a question here....
> 
> In your action then, how do you capture all 7 (for example) user id's that
> the admin wants to delete?  I have a very similar design, I have a list of
> users, and each user has a checkbox.  The admin can select multiple users
> to either activate or deactivate.
> 
> In my action then, ideally, all I want back from the page is an array (or
> some sort of collection) of each of the user id's.  I haven't been able to
> get any form of this working yet.  Any tips?
> 
> (this is using Struts 2)
> 
> Tobin
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-submit-multiple-selection--tf3401936.html#a9924729
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to