"rf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> StringBuffer sb = new StringBuffer();
> Enumeration en = req.getParameterNames();
> for (; en.hasMoreElements() ;) {
>     String param = (String) en.nextElement();
>     String value = req.getParameter (param);
>     sb.append(param).append(":
> ").append(value).append("\n");
> }
>
>
> The order of the parameters is not clear - it is
> neither alphabetical nor as specified in the html
> form.
> Is it that IE is ordering the parameters in such way
> when POSTing the data? Anybody knows about this? This
> is just out of curiousity, not really needed anywhere.

There is no specified order in either the Servlet-spec or the HTTP-spec.
You shouldn't rely on any ordering.

That having been said, I believe that Tomcat returns them in the same order
that HashMap.getKeys does.

>
> Thanks
> rf
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to