wood burning stoves 2.0*
The moose likes Struts and the fly likes sorting table data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "sorting table data" Watch "sorting table data" New topic
Author

sorting table data

Leo Lim
Greenhorn

Joined: Apr 25, 2004
Posts: 5
Hello,

I'm currently having problems figuring out how to sort table data based on the value of an html select box i.e. if the user selects a new value in the selection box, the table data below would be updated. Is there any way to do this using struts or should I use javascript instead?

Thank you very much for all your help.

Leo
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

You can use Struts, but the sort would require a call to the server to organize your array or ArrayList or whatever in your ActionForm.

Javascript will allow it client-side.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sorting table data
 
Similar Threads
Rending problem
Select box get refresh after populating the data into a table.
How Do I Append a Column to a Table for Check Box
javax.servlet.ServletException: java.lang.IndexOutOfBoundsException: Index: 6, Size: 0
Check box column trouble