John, your solution is similar to how most people would do it, but it 
wouldn't be client side sorting. The only way you are going to do client 
side sorting would be to use javascript or an applet... Personally, I 
wouldn't recomend client side sorting. 

Raj, are you sure you want to do this on the client side? 

Troy 

John Schroeder writes: 

> Raj, 
> 
> I have implemented this.  I have created an object called Table which holds
> tabular data (typically populated from a ResultSet).  This object has a
> sort() method which takes the column index as a parameter and will sort the
> Table according to that column index. 
> 
> On the JSP side, I have 2 tags:
>  TableTag    - iterates over the contents of a table.
>  TableColTag - displays (formats) a particular column (for the row) in the
> table - e.g. displays the cell. 
> 
> For each of the header columns I have used an arrow graphic that is a link
> to an action with a parameter of sort (ascending or descending) and column
> name.  This will sort the table and return it to the JSP. 
> 
> Let me know if this is something that you might want to look at for your own
> use. 
> 
> --John 
> 
>  
> 
>  
> 
> -----Original Message-----
> From: Rajeshwar Rao V [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 12:05 PM
> To: Struts Users Mailing List
> Subject: Sorting at client side 
> 
> 
> Hi , 
> 
>       We are displaying data in tabular form in a JSP. I want to sort it
> on column name. How can i do it at JSP level?
> we are using "Struts" in our application.Please help if anybody worked on
> same kinda stuff. 
> 
> Thnaks in advance
> raj 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> 
> 
 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to