Two Laptop Bag*
The moose likes Tomcat and the fly likes Order of parameters with Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Order of parameters with Tomcat" Watch "Order of parameters with Tomcat" New topic
Author

Order of parameters with Tomcat

Frank Daly
Ranch Hand

Joined: Mar 31, 2000
Posts: 139
Hi
I am transferring my servlets from the Acme web Server to Tomcat. Using Acme, I can assume the parameters will be processed by my servlet in the order they appear on the address bar. This is not the case with Tomcat.
Is there any way I can force my servlets under Tomcat to accept the parameters in the order they appear on the address bar?
Thanks in advance
frank
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12671
    
    5
No, thats just the way Tomcat handles request parameters - I think it is a Hashtable.
However, if you know the names in advance you can retrieve them by name in any order you want.
Bill

------------------
author of:


Java Resources at www.wbrogden.com
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
This really belongs in the new Tomcat forum. I will move it there for you.
Matthew Phillips

Matthew Phillips
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Order of parameters with Tomcat
 
Similar Threads
library directory
Adding Attributes to Servlet Link?
library directory again
Servlet parameter sequence?
I don't doGet() it!