• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sorting functionality in jsp

 
brams mun
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a report, in which the columns is having a name and two gifs, one for ascending sort and the other for the descending sort.
can anyone give me a sample code or site to implement the sorting functionality.

needed a bit quickly..:-))

thnx in advance....
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"bhramaresh UR ",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
needed a bit quickly..:-))


You may want to read this topic.
 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If you are getting the column values from the DB, you can re-query DB again with sort statement on the particular column with particular oreder. (When user click on that column)
But if not, then you have write your own algorithm for sorting. Take a look at Comparator, sortedMap and TreeMap API for this.
[ October 07, 2004: Message edited by: Manoj Gundawar ]
 
brams mun
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for using the term "needed quickly"
that i have given keeping in mind my delivery time.
i could able to get the solution with a new algorithm which i have defined.
thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic