I am sorry it should look like this:

String checkbox[] = request.getParameterValues("mavdel");


my bust
Andi

-----Original Message-----
From: Martin Pribyl [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 3:18 PM
To: [EMAIL PROTECTED]
Subject: Re: getting paramater names from checkboxes


Sorry, but it doesn't work.
Error compiling source file: file:f:/java/apache/htdocs/work/movedel.jsp:
Method getParameters(java.lang.String) not found in interface
javax.servlet.http.HttpServletRequest.
        String checkbox[] = request.getParameters("movedel");
                                                 ^
1 error

Martin

----- Original Message -----
From: "Andi Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 23, 2001 8:53 PM
Subject: Re: getting paramater names from checkboxes


> use String[] whatToDo = request.getParameters("action");
>
> multiple checkbaoxes return multiple parameters
>
> -----Original Message-----
> From: Martin Pribyl [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 23, 2001 2:30 PM
> To: [EMAIL PROTECTED]
> Subject: getting paramater names from checkboxes
>
>
> Hi, I have a problem in handling values of checkboxes.
> If I write for exampple
> <input type=submit name=action value=delete>
> and then on some other page
> String whatToDo = request.getParameter("action");
> then everything is OK, in whatToDo is the value DELETE.
> But If I have
> <input type=chceckbox name=select value=a>
> <input type=chceckbox name=select value=b>
> <input type=chceckbox name=select value=c>
> How could I get all the values of the selected checboxes?
>
> Thank you,
> Martin.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to