A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Ensure correct sequence of printing of request parameters ?
Rahul Sudip Bose
Joined: Jan 21, 2011
Jun 16, 2011 11:12:50
I used an
to store request parameters sent to a
by a html form. These are not printed in the order in which they appeared in the html form. How to get the correct order ?
SCJP 6. Learning more now.
Joined: Oct 14, 2005
Jun 16, 2011 11:23:45
Put them into the enumeration in the correct order.
And "correct" is your word for it. Don't expect anything in the servlet container to know what you mean by that. That means that you'll have to write code which does things correctly.
Author and ninkuma
Joined: Jan 10, 2002
Jun 16, 2011 11:32:27
There is no guarantee that the parameters will be sent to the server in any specific order. If your application depends upon this, prepare for endless problems as the order can be anything.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Ensure correct sequence of printing of request parameters ?
Sequence of request parameters
jsp:param more deatils needed
New to servlets&JSP
A diffrent problem on request attributes
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014