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.


ex:

 <form>
  <input name="field_00_id"/>
  <input name="field_01_fname"/>
  <input name="field_99_memo"/>
  <input name="field_50_authnum"/>
 </form>

 then you can take request.getParameterNames() and sort it. if you still 
have trouble using it, then you can make a translation hash

for all in (request.getParameterNames())
 xlatehash.put(val.substring(10),val);

now you can access them in order or by unprefixed name.

does this help?

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 fasion.

-jason pyeron

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                   http://www.pyerotechnics.com   -
- Owner & Lead                  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)           500 West University Parkway #1S -
- +1 410 467 2266 (f)           Baltimore, Maryland  21210-3253 -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




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.

Peter Choe



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




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

Reply via email to