File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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