struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Submit all Checkboxes
Date Wed, 31 Oct 2007 19:15:31 GMT
Default stack?

--- Richard Sayre <richardsayre@gmail.com> wrote:

> I am using struts 2.  Right now when I submit I only
> get the values of
> the checked boxes by default.
> 
> On 10/31/07, Dave Newton <newton.dave@yahoo.com>
> wrote:
> > Which version of Struts?
> >
> > S2 has this capability built-in.
> > S1 can use the same technique by including a
> hidden
> > form field.
> >
> > d.
> >
> > --- Richard Sayre <richardsayre@gmail.com> wrote:
> >
> > > I have a variable amount of check boxes with the
> > > same name.  I want to
> > > submit all of the check boxes weather they are
> > > checked or not.  Right
> > > now I only get an of array for the ones that are
> > > checked.
> > >
> > > My form has x number of 'Name' text fields x
> number
> > > of 'Activate'
> > > check boxes for another.
> > >
> > > The user will fill in the 'name'  and check the
> box
> > > to 'activate' the
> > > user.  I was using two arrays in my action to
> store
> > > the values of the
> > > check box and the text.  If I could find a way
> to
> > > submit all the check
> > > boxes the arrays would be parallel and I could
> > > easily tell which user
> > > name is activated.  Right now I have no way to
> tell.
> > >
> > > Any suggestions?
> > >
> > > Thank you,
> > >
> > > Rich
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail:
> > > user-help@struts.apache.org
> > >
> > >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> >
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


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


Mime
View raw message