Post the source code.
-----Original Message-----
From: Chanel Tien [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 6:01 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem with getting an array value

I have a text box for putting a value, a "add" button for adding this value to the list (multiple select),
and a "remove" button for removing value(s) from the list.  I guess the question is how do
I convert the content of this list to an array so I can pass it to the servlet...or...I am not sure if
using a multiple select is a right choice.  The only reason I use a multiple select list is so
I can remove more than one value from the list after adding values incorrectly.
I can make it work only if the values in multiple select list are selected (...of course).  Do you
know a way to make the values in the list "selected" by default?  Thanks:)
 

-chanel
 
 

"Galbreath, Mark" wrote:

Hmmmm....let's see....I think...I think....nope.  Sorry, I'm not telepathic,
so I guess you'll have to post your code.

Mark

-----Original Message-----
From: Chanel Tien [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 4:54 PM

   I tried to use getParameterValues() to get a value from a mutiple
select list; however, it's returning me null.
Does anyone have an example of passing an array from html form to
Servlet?  Any comments are appreciated:)
Thanks.

-chanel

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

-- 
  Alcatel USA, Inc.                  Internet: @ssd.usa.alcatel.com
  1000 Coit Road, Plano, Texas 75075
  ******* The opinions expressed are not those of Alcatel USA, Inc. *******
 

Reply via email to