Originally posted by Bear Bibeault:
Are you really looking for the location of the Tomcat installation, or the location of the web app (which may or may not be co-located)? If the former, I hear many whistles and see many red flags. What would you do with this information?
Originally posted by Bear Bibeault:
Actually it's a change in the Servlet Specification, not Tomcat.
The change from Servlets 2.3 to 2.4 mandated the change from a DTD to XML Schema.
2) if you want to be a bit more flexible, create a hidden param in the form with a comma-delimted list of the names in the desired order. The servlet can obtain and split this value to determine the names to retrieve in order.
I'd opt for the de-coupling that the second solution provides even though it's a tad more work.
Start by explaining what the order is. Is it the order of the fields on the form? If so, is the list of field names dynamic, or are they known in advance?