aspose file tools
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Order of parameters with Tomcat" Watch "Order of parameters with Tomcat" New topic

Order of parameters with Tomcat

Frank Daly
Ranch Hand

Joined: Mar 31, 2000
Posts: 139
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
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12937
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.

author of:
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
I agree. Here's the link:
subject: Order of parameters with Tomcat