🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8798

Re: pass multi select value in checkbox in jsp to a processing class?

#8798
From: Torsten Welches
Date: Tue, 27 Feb 2001 10:37
17 lines
1606 bytes
Stephen,

you can pass multiple values of the same type using an array 
parameter, e.g. an array of booleans.
Alternatively you could use a collection like ArrayList. 
Collections can not store primitive datatypes, such as boolean, 
but there are wrapper classes available for each primitive. 
(boolean -> Boolean, int -> Integer and so on). 
And unlike arrays collections can grow dynamically.

Torsten

"stephen" <chinafax1@cmmail.com> wrote:
>I have rows in a table and at the begining of each row has checkbox
>representing TravelerID. I want to pass multi selected value to a class to
>process the resutl. How to do that? Thanks.
Technical Details
Message-ID: <3a9b8372$1_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!207.105.83.65
References: <3a9b7e9f_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,470e7abbb14b9235,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-02-27 02:48:21 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Subject: Re: pass multi select value in checkbox in  jsp  to a processing class? 
Newsgroups: borland.public.jbuilder.java.language
X-User-Info: 193.158.55.74 193.158.55.74    
References:  <3a9b7e9f_2@dnews> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3a9b8372$1_2@dnews>
Date: 27 Feb 2001 02:37:38 -0800
X-Trace: 27 Feb 2001 02:37:38 -0800, 207.105.83.65
Lines: 19
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!207.105.83.65