• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help needed on tree menu

 
Vicky Pandya
Ranch Hand
Posts: 148
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to build dynamic tree menu from database. I am hoping that new database menu example on struts-menu will be useful haven't looked into it yet. But my another requirement is when user selects on any node or leaf in tree and click "create xyz" button, code should know which Hierarchy node is currently selected and pass the value to the called jsp. does anyone have done similar job with struts dynamic database driven menu? or is there any other readymade code out? should I use struts menu or any other javascript menu(i am not an expert in javascript though). what is the easiest of achieveing this, i need to make this tree functionaly ready by tomorrow.

Thanks,
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a similar requirement. I wasn't aware of struts-menu at the time, so I just wrote my own code to render a WebFXTree javaScript tree based on my java model. WebFXTree is an open source javascript package and is available for download at http://webfx.eae.net/ .

As I looked at the struts-menu examples, I noticed that it also used WebFXTree as the underlying model for creating a javaScript tree.

What I wrote was pretty generic, and could be adapted to any java model in a tree-like structure. If you'd like to look at my code, email me at mhigginson@versant.com.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic