All that is going to give you are the form field names.  You want the
form field values, from

public String ServletRequest.getParameter( String fieldName)

for individual values, or

public String ServletRequest.getParameterValues( String fieldName)

for a String array of all values associated with the same field name
(like a series of checkboxes or radio buttons).

Cheers!
Mark

----- Original Message -----
From: "Ashish Adhiya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 05, 2001 5:39 AM
Subject: Order of getParameterNames()


> Hi All,
>
> How do I get all the parameterNames in an HTML form in
> the same sequence as they are in the form.
>
>  i.e if the form contains ....  FirstName, LastName,
> MiddleName and Age .   the output should appear in the
> same sequence
>
> I have tried using the following but this shifts the
> order of the output
>
> **********************************************************
> Enumeration paramNames = request.getParameterNames();
> while(paramNames.hasMoreElements())
> {
>       String paramName =
> (String)paramNames.nextElement();
>       out.print(paramName);
> }
>
> **********************************************************
> Any help would be appreciated.
>
> Thanks.
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
>
______________________________________________________________________
_____
> 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