You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by colin campbell <co...@yahoo.co.uk> on 2002/12/05 14:16:22 UTC

Formbeans, saving multiple values

Hi,

I am displaying a jsp correctly which has all a users
details plus the dreaded checkbox. This is achieved
using iterate. This works well A checkbox plus user
details is displayed for each bean from my listarray.

However, I do not understand what get/set methods I
have to write to store the values via the form.
Obviously (I think) ineed to store a set/collection of
the data returned, of boolean type in the case of
checkbox. Multibox is not what I want, variable number
of rows.

Sorry, but I have only been using Struts for a week
and would appreciate a pointer. I could find no
examples using multiple values for checboxes, and I am
aware that my reset needs to somehow be able to reset
the set of entries.

Advice please, Colin C

=====


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Formbeans, saving multiple values

Posted by colin campbell <co...@yahoo.co.uk>.
This is for anyone else who is seeking basic
enlightenment. Mr Husted explains it all excellently,
in general terms , under his tips number 6. <br>

Question  Struts Tip #6 - Use an array to capture
multiple parameters <br> 

However, if anyone could tell me whether Checkboxes
are returned as id/"on" pairs I would be very
greatful.
<br>

F.Y.I. Colin C <br>






 --- colin campbell <co...@yahoo.co.uk>
wrote: > 
> Hi,
> 
> I am displaying a jsp correctly which has all a
> users
> details plus the dreaded checkbox. This is achieved
> using iterate. This works well A checkbox plus user
> details is displayed for each bean from my
> listarray.
> 
> However, I do not understand what get/set methods I
> have to write to store the values via the form.
> Obviously (I think) ineed to store a set/collection
> of
> the data returned, of boolean type in the case of
> checkbox. Multibox is not what I want, variable
> number
> of rows.
> 
> Sorry, but I have only been using Struts for a week
> and would appreciate a pointer. I could find no
> examples using multiple values for checboxes, and I
> am
> aware that my reset needs to somehow be able to
> reset
> the set of entries.
> 
> Advice please, Colin C
> 
> =====
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>  

=====


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>