• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Expandable Tree Structure in Struts

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wnat to create a collapsible/expandable tree structure using Struts in my jsp page.

How to achieve this. I am using struts 1.2.9 version.

I need a "+" sign with each parent, clicking on which the tree will collpase, "+" sign chnaging to "-" sign and show all the child nodes.The child nodes in turn will behave similar if they have any child nodes.

Thanks in advance!

Regards
Jay
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the Struts forum.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd suggest using one of the many JavaScript tree widgets that are available. I use trees quite often in my applications, and I have downloaded and modified TreeView for this purpose. There are lots of them, though. Just Google "JavaScript tree" and you'll get an idea of what's out there.

If you have a Java data model you wish to represent as a tree structure, just write a code generator class to generate the JavaScript code that will create the tree.
[ September 27, 2006: Message edited by: Merrill Higginson ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic