This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Tree View or Menu View and Struts Compatibility ??

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

I need to make a windows explorer type of view using Struts 1.1. So for that what should I opt for?should I use Treeview or Menu view? Firstly it must be compatible with struts and then also be dynamic.It should also interact with the database in SQL Server 2000 and interact with it. So which one would be a better option?

I had searched and some results showed that this dynamic implementation and interaction with database would be possible only using AJAX and I havent had an exposure to it yet.

Please suggest which one is appropriate. Thanks in advance

Regards,
JENAL
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to our Struts forum.

Thanks

Mark
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've used trees in a number of my Struts applications, and I haven't had to use AJAX. What I've done is find an existing JavaScript tree package (the one I used was TreeView) and incorporated that into my pages. In a case where I had a data model that had to be replicated into a tree structure, I wrote a java class that acted as a JavaScript code generator that would generate JavaScript code for the TreeView API that matched the data model.

If you do it this way, all the behavior to expand and collapse the tree is handled on the client with JavaScript, but you can make each node into a hyperlink, so that if a user clicks on a node, the link is activated and you can then perform whatever action you need on the server side.
 
jenita brown
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a Lot Merrill... I am sure that would help me out. I will try it and let you know about my progress...

Thank You, once again.

Regards,
JENAL
 
Are you here to take over the surface world? Because this tiny ad will stop you!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic