Yes Claire,
                I am doing like that only.This is my jsp,contains the code.
I am nested inside the iteration.


FORM BEAN
public String[] getDeletereqs() {
        return this.deletereqs;
    }

public void setDeletereqs(String[] deletereqs) {
        this.deletereqs=deletereqs;
    }

JSP
<logic:iterate id="allrc" name="allreqcand">
        <tr align="left">
        <td>
            <html:checkbox  name="allrc" property="deletereqs" value="check"
/>
        </td>
      </tr>
</logic:iterate>

Then in the action, i want to check what r all the check boxes checked. How
can i do that one.
Shall i use the request.getParametervalues();

      Any othet option u know, how to perform in action.

Mail your opinion.




-----Original Message-----
From: Claire Wall [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 3:21 PM
To: Struts Users Mailing List
Subject: Re: Getting the CheckBox Collection Value in FormBean Class


Do you mean that you want to store checkbox values in a form bean? if so...


You can set up an empty String array in your form bean like this:
String[] checkboxes = new String[]{};


and then in your jsp page you can set the property of a checkbox to this
array, like:

<html:checkbox name="FormName" property="checkboxes" value="???"/>


when the page is submitted, the checked box values are stored in the array -
you can then use them how you wish in your action. Note though that you have
to set the value of the checkbox if you are going to have anything submitted
to the array in the form.


HTH
claire :)


----- Original Message -----
From: "Ramachandran" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, February 02, 2004 9:38 AM
Subject: Getting the CheckBox Collection Value in FormBean Class


> Hi All,
>
>              If any body know how to get the solution for getting the
check
> box collection value in the form bean class. If so mail your ideas.......
>
> Thanx,
> Ram
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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



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

Reply via email to