i want to capture all the html form field 's names in the
jsp.
iam having 10 textfields in the html page.iam doing it with the following code.
Enumeration e=request.getParameterName()
while(e.hasMoreElements())
{
String s=(String)e.nextElement();
out.println(s);
}
i getting all the field names from the html form.But my problem is that the values are not displaying in sorting order.i.e.,first text field name is printing in 8 position and 2 text field name in 3 position.i.e., the values are printed randomaly.i want 1 field name to be printed first in browser.please help me.iam in very urgent.thanks in advance.
iam pasting the html and jsp code...
<input type=text name = txt_User_Id_V>
<input type=text name = txt_User_Pwd_V>
<input type=text name = txt_User_Add_Pobox_V>and so on...
jsp code..
Enumeration e;
e=request.getParameterNames();
while(e.hasMoreElements())
{
String s=(String)e.nextElement();
out.println(s);
}
output..
txt_User_Add_Street_V
txt_User_Pwd_V
txt_User_Add_Place_V
txt_User_Add_Email_V
txt_User_Add_Pobox_V
txt_User_Add_Contact_V
txt_User_Add_Zip_V
txt_User_Add_City_V
txt_User_Add_Phone_V
txt_User_Id_V
txt_User_Name_V