J
John
Here's the code fragment to enumerate the request parameters list, but
the order
is not the same as in the query string.
http://localhost:9999/projWeb/EStoreServlet?a=1&b=2&c=3&d=4
==========================
Code
==========================
for (Enumeration e = req.getParameterNames(); e.hasMoreElements()
{ Object obj = e.nextElement();
String key = obj.toString();
String value = req.getParameter(key);
out.println(key + "," + value + "<br>");
}
==========================
output
===========================
b,2
a,1
sub,Logon
d,4
c,3
any ideas?
please advise. thanks!!
John.
the order
is not the same as in the query string.
http://localhost:9999/projWeb/EStoreServlet?a=1&b=2&c=3&d=4
==========================
Code
==========================
for (Enumeration e = req.getParameterNames(); e.hasMoreElements()
{ Object obj = e.nextElement();
String key = obj.toString();
String value = req.getParameter(key);
out.println(key + "," + value + "<br>");
}
==========================
output
===========================
b,2
a,1
sub,Logon
d,4
c,3
any ideas?
please advise. thanks!!
John.