Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 35730 invoked from network); 8 Oct 2003 09:46:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 8 Oct 2003 09:46:19 -0000 Received: (qmail 52312 invoked by uid 500); 8 Oct 2003 09:45:55 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 52272 invoked by uid 500); 8 Oct 2003 09:45:55 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 52258 invoked from network); 8 Oct 2003 09:45:54 -0000 Received: from unknown (HELO smtpzilla2.xs4all.nl) (194.109.127.138) by daedalus.apache.org with SMTP; 8 Oct 2003 09:45:54 -0000 Received: from mail.madocke.nl (213-84-159-143.adsl.xs4all.nl [213.84.159.143]) by smtpzilla2.xs4all.nl (8.12.9/8.12.9) with ESMTP id h989k6oQ072714 for ; Wed, 8 Oct 2003 11:46:07 +0200 (CEST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Order of parameters X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Wed, 8 Oct 2003 11:46:06 +0200 Message-ID: <61BAD406AA642745AE1142AF689E8D8E030B25@madocontrol.madocke.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Order of parameters Thread-Index: AcONgP7brCaczzzSSxChaYrRZpP4gg== From: "Martin van Dijken" To: "Tomcat Developers (E-mail)" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I've been trying to create an automated form handler. This form handler = could be a lot more effective if the request parameters were in the = order they were put on the form. Now most browsers send this information = over HTTP in the order they were found in the form. However, because the = parameters are in Tomcat put into a Hashtable, the order is lost and can = never be rebuilt. First of all, does anybody have a problem with a little code to keep the = parameters in order? Second, please comment my proposed solution:=20 The best way I can think of to change this involves creating an = extension of Hashtable. At the moment a parameter is put into the = Hashtable, the key is put into an Arraylist. When = request.getParameterNames() is called, the parameters are returned in = the order they are found in the ArrayList. This would keep the speed of = accessing request.getParameter() fast and put a little overhead at = request creation and getParameterNames. Martin van Dijken --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org