Anita D.
Posts: 1
Nickname: adoornb
Registered: Jul, 2002
|
|
sorting
|
Posted: Jul 26, 2002 1:59 PM
|
|
Advertisement
|
When I generate all the form field names and values, it displays it randomly and I would like it in the same order as when I tab it through the form?
//Generate everything that form contains (field name and values) Enumeration parameters = request.getParameterNames();
if ( parameters != null )
{
while(parameters.hasMoreElements()) { name = (String)parameters.nextElement(); value = request.getParameter(name);
if ( body == null ) {
body = ("\r\n" + name + " = " + value);
}else {
body = body + ("\r\n" + name + " = " + value);
} }
}
|
|