File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Menu Component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Menu Component" Watch "Menu Component" New topic
Author

Menu Component

Hari, Pillai
Greenhorn

Joined: Feb 21, 2001
Posts: 4
Hi:
I am looking for a menu component that perform sort operations. The similar functionality like in Microsoft Outlook(Inbox). When you click on the From, Subject, Received items in the INBOX the contents will be sorted with respect to the respective header clicked. In the same way, the component should sort the resultset between ascending & descending order whenever the header is clicked. Can anyone give me some tips where to purchase/get the code..??
Any help is really appreciated!
Thanks:
Hari Pillai
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I don't quite understand what you are looking for. Is this for use from a servlet or JSP, or would this be more appropriate asked in the Swing and AWT forum?


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Hari, Pillai
Greenhorn

Joined: Feb 21, 2001
Posts: 4
Ideally it should be called from a servlet.
Appreciate any tips!
Hari Pillai
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
So are you looking for some sort of HTML builder to construct a sorted <SELECT> from an unsorted Vector or List then?
Hari, Pillai
Greenhorn

Joined: Feb 21, 2001
Posts: 4
Yes, adding to the same point we most likely will have hash tables inside the vector.
Thank you for your time
Hari
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Here is a servlet I did up that I think does what you want. It sounds to me like you are grabbing data from a database and storing it in a ResultSet. That's the assumption I went off of, but if not you can easily change the code. I also assumed there was some reason you didn't want to "ORDER BY" your sql query.

Hope this helps. Study it, and if you have any questions I'll be happy to try and answer them.
Jay
[This message has been edited by Jason Menard (edited February 22, 2001).]
Hari, Pillai
Greenhorn

Joined: Feb 21, 2001
Posts: 4
Thanks a lot Jay..I will test it out and let you know!
Hari
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Menu Component