tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Lipofsky" <>
Subject Re: reading forms
Date Thu, 09 Jan 2003 17:29:39 GMT
> for lack of a better description the names are radmonized. This is because
> they are in a hash.
> if you need them in a given order, you may want to "number" them.

If it is a GET request you can do request.getQueryString()
and parse the query string by hand.  A bit painful and it
doesn't work for POST requests.

> IMHO: if you need the names in order there is a problem with you logic,
> cause there is no gaurentee that the browser will send them in any give

unless it is a GET request and the URL is static or constructed
by javascript with the parameters in the URL.  Then you have a
gaurenteed order.
- Dan

> On Thu, 9 Jan 2003, Peter Choe wrote:
> is there a way to specify the order of the parameters are read from a form
> in a servlet?
> it seems that if i do request.getParameterNames() there is no logic to
> which parameters are read first.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message