You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tanmay Waikar <tw...@allstate.com> on 2008/02/23 12:15:14 UTC

Retriving a form content for the selected html:checkbox


Hi, 

I am iterating my form bean values using logic:iterate tag.  I have a
html:checkbox which will simultaneously get iterated with the values.

My requirement is to fetch the selected values  of the grid on press of
submit button in the action class. 

Thanks
-- 
View this message in context: http://www.nabble.com/Retriving-a-form-content-for-the-selected-html%3Acheckbox-tp15650951p15650951.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Retriving a form content for the selected html:checkbox

Posted by st...@gmail.com.
If I remember correctly, the checkbox expects a get/set even though the POJO
std for a boolean is typically is/set.

Scott

On Tue, Feb 26, 2008 at 2:11 AM, Laurie Harper <la...@holoweb.net> wrote:

> Tanmay Waikar wrote:
> >
> > Hi,
> >
> > I am iterating my form bean values using logic:iterate tag.  I have a
> > html:checkbox which will simultaneously get iterated with the values.
> >
> > My requirement is to fetch the selected values  of the grid on press of
> > submit button in the action class.
>
> What problem are you having? As long as your checkboxes are mapped to a
> property in the form bean (which needs to be an indexed property, since
> it will hold multiple values) this should work.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

Re: Retriving a form content for the selected html:checkbox

Posted by Laurie Harper <la...@holoweb.net>.
Tanmay Waikar wrote:
> 
> Hi, 
> 
> I am iterating my form bean values using logic:iterate tag.  I have a
> html:checkbox which will simultaneously get iterated with the values.
> 
> My requirement is to fetch the selected values  of the grid on press of
> submit button in the action class. 

What problem are you having? As long as your checkboxes are mapped to a 
property in the form bean (which needs to be an indexed property, since 
it will hold multiple values) this should work.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org