Hi ..swarup ,
If there is a need of determining the order correctly then use the QUERY
STRING .
if doget is implemented the u can directly get the query string
if dopost is implemented the get iostream of httpservletrequest and read the
query string.
----> use / parse the query string to find correct order .
(in the query string u see the same string as u see in the url bar
of browser.)
ENUMERATION implementation can not be depended for determining the correct
order.
Anupam Ratha.
Fujitsu Operations.
ZenSar Technologies Ltd.
-----------------------------------------------------------------------
"You have reached a perfect design not when nothing
can be added to it but when nothing can be taken away
from it "
-----------------------------------------------------------------------
-----Original Message-----
From: Swarup K Mishra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 27, 2000 4:45 PM
To: [EMAIL PROTECTED]
Subject: Parameter Processing in Servlets...
Hi,
I am new to Servlets as well as to this mailing-list. For the following
doubt, I've got, I couldn't refer to the Archives - hoping to get instant
fix from u guys!!
I've got a doubt in Parameters Processing using Servlets and thus posting
the same in this mailing list.
If I send two parameters, I could able to collect them in an Enumerated
object and always I get them in reverse order. Pls. consider the scenarios.
1. for a call with two parameters like this:
http://localhost:8080/servlet/ParameterServlet?p1=100&p2=200, first I am
getting p2 and then p1.
2. for a call with three parameters like this:
http://localhost:8080/servlet/ParameterServlet?p1=100&p2=200&p3=300, I am
getting p3,p2 and p1. But that doesn't mean it always consider the same
reverse order. A call like this:
http://localhost:8080/servlet/ParameterServlet?rating=1&movie=Titanic&Actor=
DiCaprio, I am getting rating, movie & Actor in that order.
Whtz the actual way parameters are processed? Is it anything to do with
Enumeration object? Anyone pls. do clarify. Thanx in advance.
...Swarup
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html