Krzysztof Zielinski wrote:
> Hello.
>
> I'm trying to get all parameters from request in right order.
> Right order means that I need parameters in order as they were in HTML
> Form.
Web browsers are not required to return the form values in the order they
are in in the form.
You sho
Title: RE: How to get request prameters in right order.
What I have done in the past is create all my webpage element names in a standard way, such as Element_Data_Field_1, where I could parse all the form elements and any that begin with 'Element' are for XML and then I could
> I can get all parameters by the help
request.getParameterNames() but
> it returns them as hash table keys. So we lost their original
order.
Actually, request.getParameterNames() returns an Enumeration,
instead of a Hash table. So you should be able to run through
this Enumeration with (String
> Sent: Tuesday, March 27, 2001 5:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to get request prameters in right order.
>
>
>
> > I can get all parameters by the help
> request.getParameterNames() but
> > it returns them as hash table keys. So we lost the
a bit kludgey, and may not
work in all environments (e.g. browsers), so it would be best to come
up with a design/solution that doesn't require knowing the order of
the parameters.
> > -Original Message-----
> > From: Frans Verhoef [mailto:[EMAIL PROTECTED]]
> > Sent: Tue
- Original Message -
From: "Krzysztof Zielinski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 27, 2001 7:54 AM
Subject: How to get request prameters in right order.
> I'm trying to get all parameters from request in right order.
> Right order means that I need para
There is a simple way...
don't call request.getParameter
otherwise the post-stream will be read.
and read it by youself (request.getInputStream or something like that..
and parse the string yourself)
Krzysztof Zielinski wrote:
> Hello Filip,
>
> Tuesday, March 27, 2001, 7:24:27 PM, you wrote:
>
But actually I am curious why it really needs to be in sequence.
You can actually do quite a lot by just using the names. So
maybe if I know what needs to be done, I can give a better
alternative solution.
Frans
> In short, there's no real way to get the order of the
parameters other
> than
> ge