At 11:47 AM 22/11/99 -0700, you wrote:
>Hi,
>
>I have a small prob.
>I have an HTML page which displays a list of users.
><SELECT SIZE=5 NAME=GroupList SINGLE>
> <OPTION >Michael</OPTION>
> <OPTION >John</OPTION>
> </SELECT>
>User can add to this list, dynamically.
>
>Now when user clicks on submit button, my servlet is called. In my servlet i
>am using
>request.getParameterValues("GroupList");
>
>This method is returning null.
>Any idea why?
Is the select list wrapped in a form? IS the form a GET or POST method?
If you change it to a GET then you can see the URL when the form is
submitted. There should be something like
http://localhost/serverlet/MyServlet?groupList=Michael&GroupList=John
But remember, they also have to be highlighted as well, just listing them won't
make them selected. Since you are building the list dynamically, with the
onSubmit event handler on the form you can add a loop which sets all the
elements of the select list's selected value to true ...
--
Subvert the dominant paradigm
http://www.cyber4.org/members/grumpy/index.html
___________________________________________________________________________
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