vdevaruppala
asked on
How to use Alphabetical sorting for values getting from resultset and display the values in a drop down on a jsp page
Hi ,
I have three things to do
1) collect the String values coming from a ResultSet on a specific column name.
2) store the values into a java collection and sort the collection in Alphabetical order.
3) send the sorted collection to a jsp to be displayed in a drop down.
I have tried using the java.util.List to collect the values and used the Collections.sort()
and i get the the values unsorted and with padding like "[" and " ] " for the all the elements stored in the
list.
I probably can send u guys snippets of code if it helps..
Thanks
Deva
I have three things to do
1) collect the String values coming from a ResultSet on a specific column name.
2) store the values into a java collection and sort the collection in Alphabetical order.
3) send the sorted collection to a jsp to be displayed in a drop down.
I have tried using the java.util.List to collect the values and used the Collections.sort()
and i get the the values unsorted and with padding like "[" and " ] " for the all the elements stored in the
list.
I probably can send u guys snippets of code if it helps..
Thanks
Deva
send the code
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
My suggestion works well for sorting the resultset. I beleive that I should get credit.
-raj
-raj
Thanks,
[r.D]