• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client side table sorting with javascript and JSP under struts

 
Fletcher Munson
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using struts and JSP on the front end to retrieve my initial
data. Originally for resorting the JSP would back to the server,
resort (via Java), and return a new table. To speed things up I'm
trying to implement this sorting script on the client side. For the
basic portion of this task everything is peachy, but (as usual) there
is a special case. When I click on one of my headings (Group Code) I
need to sort by this code, but after each Group I need to have the
full name (not just the code) and numeric totals for that group. This
is currently working today by having my JSP drop back to the server
where my Java takes care of the special tasks.


My first question is how do I go about making this special call the
backend with all this front end gobbledigook? I can't seem to make
the JSP work in harmony with the JavaScript to make the new Struts
call to the back. Ideas? Do I need to provide more clarity? Code examples? Etc.? Is there a better way to sort the table?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nameless Numberhead Man,

Welcome to JavaRanch! We're glad you're here. I do need to remind you, though, that the name you are currently displaying does not meet the guidelines of the JavaRanch Naming Policy. In particular, the name you display must be a first and last name, and must not be obviously fictitious. Please change the Publicly Displayed Name in your user profile so that it meets the guidelines.

This may seem trivial to you, but it's an important part of the culture at JavaRanch, and we do appreciate your compliance with it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic