Hi,
you can use Enumeration en = request.getParameterNames();
then: String s;
        while(en.hasMoreElements()){
                s = request.getParameter((String)en.nextElement());
        }

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Amar Das
Sent: Thursday, August 10, 2000 7:05 PM
To: [EMAIL PROTECTED]
Subject: Parameter Count


Let consider I am have the following URL
http://...../servlet/MakeList?ID1=STN001&ID2=STN002 etc.

Is there a way to determine dynamically how many paramenters are passed in
the query to a Serlet.  I can resolve situations when I know exactly the
number of parameters passed in the query by using the following code
segment.

String req1=request.getParameter("ID1");
String req2=request.getParameter("ID2"):

But I need some help, how to handle things when I do not know how many
parameters passed.

Thanks,
Amar Das

___________________________________________________________________________
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

Reply via email to