File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts Tree View Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Tree View" Watch "Struts Tree View" New topic

Struts Tree View

Shilpa Tendulkar
Ranch Hand

Joined: Jul 29, 2001
Posts: 75
I need to implment tree view strcture(similar to file explorer in windows) in my application. While searching on google, I found that tree view structure can be implemented using struts.
I tried couple of example but nothing helped.
Can anybody please provide some information on Struts tree view ?

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
There is no "tree view" component of Struts.

What you are probably thinking of is the Struts Menu Tag Library which is an addon to Struts. It has a tree building component.

I haven't used it, so don't have any examples of how to use it.

I do use trees extensively in my applications. For my needs, it has worked out better just to use Treeview which is a JavaScript library for building tree structures. This is the underlying JavaScript library used by Struts Menu Tag Library to render its trees. There are many other JavaScript tree creators out there. Just do a web search and you'll find them.

Which of these will work better for you depends on your application.

Consultant, Sima Solutions
Vijendra Babar

Joined: Jul 28, 2006
Posts: 18
Hi Shilpa,

Well as such Sturts doent provide components for Treeview, But you can download necessary jar files which provides facility to get treeview.

To be more clear please reffer this site which contain Excillent example.

Hope so this exaple shall clear your concepts.
I agree. Here's the link:
subject: Struts Tree View
jQuery in Action, 3rd edition