Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Tree View

 
Shilpa Tendulkar
Ranch Hand
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
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 ?
Thanks.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vijendra Babar
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

http://www.servletsuite.com/servlets/treetag.htm

Hope so this exaple shall clear your concepts.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic