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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "sorting table data" Watch "sorting table data" New topic

sorting table data

Leo Lim

Joined: Apr 25, 2004
Posts: 5

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.

Marc Peabody
pie sneak

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
It's not a secret anymore!