We need a way for Jrun to provide us with a hashtable of query parameters 
that will enumerate in the order they appeared in the form. Currently, 
although the HTTP specification asks that parameters are viewed in the 
order that they are sent, the Java servlet specification does not. The 
result is that in most servlet implementations (including Jrun), the 
parameters are enumerated in alphabetical order and NOT the order in which 
they appeared in the form.

For example, if you had a form with the following HTML:

<FORM>
<INPUT NAME="name">
<INPUT NAME="password">
</FORM>

We would like the parameters to be received in the order "name", "password".

However, when you enumerate through the servlet using the following code:

public void service(HttpServletRequest request, HttpServletResponse 
response) throws ServletException {

Enumeration e = request.getParameterNames();
  String name;
  while(e.hasMoreElements()) {
  name = (String)e.nextElement();
  System.out.println(name);
  }

The parameters will come out in the order "password", "name".

We would love to be able to modify our code to handle this, but 
unfortunately, due to customer requests, we need to know in what order the 
elements are in the form.

With Tomcat and Jserv, we were able to modify a file to manipulate in what 
order the query parameters were enumerated. We do not know how we can do 
this with Jrun. Any help would be greatly appreciated!


Cary Gordon
The Cherry Hill Company


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to