hi,
use getParameterValues to get a list of the values. i.e.
String[] options = request.getParameterValues("countries");
if (options != null) {
for (int i = 0; i <= options.length; i++) {
out.println("value " + i + options[i]);
}
else
you cold try using request.getQueryString();
// which i don't recommend
roy
-----Original Message-----
From: Fricka Kaichy Ling [mailto:[EMAIL PROTECTED]]
Sent: 15 June 2000 16:17
To: [EMAIL PROTECTED]
Subject: Processing multiple select option forms
Hi,
I can't quite figure out how to process those html forms where you can
select one or more options using servlets. I think the call getParameter()
only returns the first(?) selection, rather then all the selections. Should
an array of strings (or whatever the values attribute is) be returned?
I've
seen many examples on the web for perl and the like for such a POST method,
but never stumbled across anything for servlets.
Thanks in advance,
fricka
___________________________________________________________________________
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
___________________________________________________________________________
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