Link to home
Start Free TrialLog in
Avatar of vdevaruppala
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
Avatar of DrWarezz
DrWarezz

Yeah, send us what you've got so far please. :)
Thanks,
[r.D]
send the code
ASKER CERTIFIED SOLUTION
Avatar of raj3060
raj3060
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My suggestion works well for sorting the resultset. I beleive that I should get credit.
-raj