• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sorting table. Please help  RSS feed

 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I got a table display data with 4 columns using JSP. The data retrieve from database.
I want to sort column 4, and then column 5. How do I do this using java object. Please giving some hints !

Many thanks in advance@
 
jay lai
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone please help:
I got a result set from different source, everything now in the while loops inbeded inside the jsp. Looping through using Iterator
I have 4 columns: Email, Date, Operation, Source
I need to display the resultset with sorted by Operation in DESC first and then Source in DESC order. Would anyone giving me some steps or hints, how to approach this.

many thanks in advance

 
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's an example:

http://forum.java.sun.com/thread.jspa?threadID=545902&messageID=2656630
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!