How to use Alphabetical sorting for values getting from resultset and display the values in a drop down on a jsp page
Posted on 2004-09-15
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
I probably can send u guys snippets of code if it helps..