On Wed, 8 Oct 2003, Martin van Dijken wrote:
> 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 MOST browsers; certainly not all. > 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. Unfortunately it is not uncommon for anti-virus/filtering proxies to mess with the order as well. If you are requiring order it may makes the most sense to NOT trust the wire - but do the ordering yourself on entry as described. But bear in mind that it is generally much much safer to check for a explicit field name in the Hash table than to rely even on the ordering; a broken proxy (common) or some malicious person (less common) may have removed or added fields. So this idea may not be one which leads to safe habits. DW --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]