Telmo,
>-----Original Message-----
>From: Telmo S� [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, December 16, 1999 8:23 AM
>To: [EMAIL PROTECTED]
>Subject: Form input order - a little bit off topic
>
>
>Hello all!
>I have the following question.
>Suppose you have a form with several inputs.
>Lets say, a,b,c.
>When i submit the form to a servlet, shouldn't be expected to have the
order
>a,b,c kept in the parameters.
>
>I have a portion of code that outputs the parameters recieved from the
form.
>Enumeration names = req.getParameterNames();
>
>...
>
>while(names.hasMoreElements()) {
> String name = names.nextElement();
> out.println(name + "=" + request.getParameter(name));
>}
>
>...
>
>The order i get is, a,c,b.
>
>Thank you for any input!
>
> Telmo Sa
No, you should not expect the values to be returned in the same order since
they are stored in a hashtable. The hashtable does not maintain the order
of the objects that it contains.
-Richard Yee
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
Richard Yee.vcf