Discussions

Web tier: servlets, JSP, Web frameworks: Tree Control + JSP

  1. Tree Control + JSP (8 messages)

    I need to display a tree in a JSP . This is to achieve Explorer kind of look. The depth and structure of the tree is known only at runtime. My requirement does not allow me to use an Applet here. So JTree is ruled out.

    Does any body know of any solution?

    Threaded Messages (8)

  2. Tree Control + JSP[ Go to top ]

    hello Raghu,

    Since you have ruled out Java on the Browser, one alternative would be to use DHTML. Thus the JSP will use one of its beans to determine the depth of the tree and then use DHTML layers to show and hide the nodes. But I am not sure how many layers deep you can go when you use this technique.

    Thanks

    -U
  3. Tree Control + JSP[ Go to top ]

    why don't u try to use xml and give it the xml tree look?
  4. Tree Control + JSP[ Go to top ]

    Hi Ekta,

    Can you give some more details ?

    Let us assume that the leaves contain URLs (hidden) and clicking on a leaf may have to trigger an action. In this scenario, how can I use XML? I am open to any idea.

    Right now, I wrote a bean, a method in it contains the logic to traverse a DOM Tree and to generate the javascript (strings) required to show a tree.

  5. Tree Control + JSP[ Go to top ]

    Hi Raghuram.
    Here is a thought.
    I had a similar requirement. I used Javascript for that effect. Whenever the user explores the <code>tree</code>, I get that next level of the tree and render the new nodes under the explored node. I made extensive use of HTML blocks (DIVs, Layers). If you plan to use this approach, you may have to take care of the differences between IE and NS.

    Hope that helps.
    Vijay
    (avpreddy at yahoo dot com)
  6. Tree Control + JSP[ Go to top ]

    Hi...
         Well i have a same problem as the one discribed there.
    SO can u help me in finding any source of such kind where a tree is interacting with DB & getting its subnodes.
    The tree is been load in JSP & should also have popupmenus on right click of the mouse.
    As u have said that u have a similar appliacation with u ..can u share that or help us in any suitable way?

    Regards Jawad
  7. Tree Control + JSP[ Go to top ]

    Hi...
         Well i have a same problem as the one discribed there.
    SO can u help me in finding any source of such kind where a tree is interacting with DB & getting its subnodes.
    The tree is been load in JSP & should also have popupmenus on right click of the mouse.
    As u have said that u have a similar appliacation with u ..can u share that or help us in any suitable way?

    Regards Jawad
  8. Tree Controls[ Go to top ]

    Try some of the vendors who supplu tree controls. Here is a list of them from my bookmarks:
    http://www.common-controls.com/en/products/guided_tour/treecontrol/index.html
    http://www.treemenu.net/treemenu/demos.asp
    http://webfx.eae.net/dhtml/xtree/

    Hope this helps.

    Venkatt Guhesan
  9. I made tree in jsp with the help of javascript. i have posted code to http://easywayserver.com/forum/viewtopic.php?t=41 there is only problem left only that is minor problem. That is connection close. If any one do it plz inform me thank you