-
How to sort the result return from a web service.
Hi All:
I am using Weblogic 9.2, Web Services Client, and Struts.
I have a java client in struts that calls a web services.
The "ID" field contains a Java integer.
The "First_Name" is a Java String.
The "Effective_Date" field is a Java date field.
The web service returns an arrayList.
From the arrayList, I displayed the result as the following:
ID FIRST_NAME EFFECTIVE_DATE
-- --------- -------------
3 John 9/10/2007
2 Andrew 1/11/2006
5 Peter 3/4/2006
The "ID" header is a link.
The "First Name" header is a link.
The "EFFECTIVE_Date" is a link.
If I clicked on the link "ID", the first time, it will sort the rows in ascending
order like the following:
ID FIRST_NAME EFFECTIVE_DATE
-- --------- -------------
2 Andrew 1/11/2006
3 John 9/10/2007
5 Peter 3/4/2006
If I clicked on the link "ID", the second time, it will sort the rows in descending
order like the following:
ID FIRST_NAME EFFECTIVE_DATE
-- --------- -------------
5 Peter 3/4/2006
3 John 9/10/2007
2 Andrew 1/11/2006
If I clicked on the "First_Name" field the first time, it will sort the rows in
desceding order.
If I clicked on the "First_Name" field the second time, it will sort the rows in
ascending order.
This applies the same for the "EFFECTIVE_DATE".
Any hint would be greatly appreciate.
Yours,
Frustrated.
Similar Threads
-
Replies: 2
Last Post: 04-18-2007, 02:34 AM
-
By (MC3)RaVeN in forum Java
Replies: 0
Last Post: 03-02-2007, 09:30 AM
-
By cormac in forum ASP.NET
Replies: 0
Last Post: 06-21-2005, 11:01 AM
-
By Taiwo Ayedun in forum .NET
Replies: 1
Last Post: 10-15-2002, 05:18 AM
-
By Tim Romano in forum .NET
Replies: 0
Last Post: 04-19-2001, 07:54 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks