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 Dave Newton-4 wrote: > > --- xushaoxun <[EMAIL PROTECTED]> wrote: >> I am using struts2, and I've been thinking for this >> questing for days. [s:checkbox] seems won't work. >> Because it only renders boolean value. > > Try using the fieldValue attribute of <s:checkbox.../> > > For example, if I use: > > <s:checkbox name="user.id" > fieldValue="%{user.id}"/> > > it renders as: > > <input type="checkbox" > name="user.id" > value="42" > checked="checked" > id="confirmTest_user_id"/> > <input type="hidden" > name="__checkbox_user.id" > value="42"/> > > d. > > > > > ____________________________________________________________________________________ > Expecting? Get great news right away with email Auto-Check. > Try the Yahoo! Mail Beta. > http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-submit-multiple-selection--tf3401936.html#a9922117 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]