> From: Hardeep Singh <[EMAIL PROTECTED]>
>
> > 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?
Joseph Ottinger wrote:
>
> You can't guarantee the order of form paramaters; the
> browsers don't have a well-defined order themselves,
> so there's no guarantees available.
>
There is a defined order. From the HTML 4.01 spec:
17.13.4 Form content types
... Forms submitted with this content type must be
encoded as follows:
...
2. The control names/values are listed in the
order they appear in the document. ...
So, if you parse the form data yourself, you can get
the controls in the proper order. But that means
parsing the input stream...
There's code to parse the input stream in the various
open source servlet containers, like Jetty, Paperclips,
and Tomcat. Links to any of those servers can easily
be found using a search engine.
--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.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