• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to show Parameter names in an order?

 
Sandhya Deekonda
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic