aspose file tools*
The moose likes Struts and the fly likes Client side table sorting with javascript and JSP under struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Client side table sorting with javascript and JSP under struts" Watch "Client side table sorting with javascript and JSP under struts" New topic
Author

Client side table sorting with javascript and JSP under struts

Fletcher Munson
Ranch Hand

Joined: May 16, 2007
Posts: 31
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?


SCJP 5, SCWCD 1.4
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Client side table sorting with javascript and JSP under struts