Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sorting table data

 
Leo Lim
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic