Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Tree View or Menu View and Struts Compatibility ??

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to our Struts forum.

Thanks

Mark
 
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'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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic