----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Mario Krolo wrote:
> I want to use the SELECT MULTIPLE html tag on my web page
> to allow the user multiple selections.
> Does anyone know how these multiple values can be retrieved
> inside the servlet? An example would be appreciated.
>
> Thank You
javax.servlet.ServletRequest.getParameterValues(String)
use it in this way:
String [] param = request.getParameterValues("myparam");
for(int i=0;i<param.length;i++){
//do whatever you want
}
Martin
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]