How do I get all the parameterNames
in an HTML form in
the same sequence?
Example:
If the form contains
FirstName
,LastName
andAge
The output should appear exatcly in the same sequence
I have tried using the following but this shifts the order of the output:
Enumeration paramNames = request.getParameterNames();
while(paramNames.hasMoreElements()) {
String paramName = (String) paramNames.nextElement();
out.print(paramName);
}