my dog learned polymorphism*
The moose likes Struts and the fly likes help needed on tree menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help needed on tree menu " Watch "help needed on tree menu " New topic
Author

help needed on tree menu

Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help needed on tree menu