Unfortunately, that won't guarantee it either, each browser and server is
free to return them in any order.  The only sure fire way is to include a
hidden form parameter with the field names in the order you wish.  You can
use that instead of request.getParameterNames() to look up the other fields
in your own order.
    (*Chris*)

----- Original Message -----
From: "Ganszky, Balazs (GEL,MSX)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 11, 2001 3:16 AM
Subject: Re: [JSP-INTEREST] Getting form parameters in order of input


> Easy to do
> you have to prefix the field names eg.: 0001_<field name>
>
>
>
> -----Original Message-----
> From: Hardeep Singh [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 11, 2001 7:55
> To: [EMAIL PROTECTED]
> Subject: Getting form parameters in order of input
>
>
> Hi,
>
> I want the names of all input parameters sent to a form. I can do this in
a
> JSP through request.getParameterName(). However, this gives me the names
in
> alphabetical order. For my application, it is important to get the
> parameters in the exact order in which they were sent. Can I do this
without
> parsing the InputStream? If I have to parse InputStream, then is there any
> readymade code available?
>
> Hardeep Singh
> http://SeeingWithC.cjb.net
>
>
===========================================================================
> 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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
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