aspose file tools*
The moose likes JSP and the fly likes how to show Parameter names in an order? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to show Parameter names in an order?" Watch "how to show Parameter names in an order?" New topic
Author

how to show Parameter names in an order?

Sandhya Deekonda
Ranch Hand

Joined: Dec 18, 2006
Posts: 34
Hi All,
I'm writing a web application which consists of two jsp files.In one jsp i have some text field and in the other i want to get those values for that i'm using enumerator,but the order in which i get values is different.I want the order in which i entered.how can i do that?? Can anyone help me out??
Thanks,
Sandhya.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12786
    
    5
You will have to provide for ordering the parameters with your own code. The parameters in a request are stored in a Map so you have no control over the order an enumeration retrieves.
If the names of the fields are fixed, why not have a String[] in the order desired and use those field names to recover the parameter values.
Bill
 
Consider Paul's rocket mass heater.
 
subject: how to show Parameter names in an order?