• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tree View or Menu View and Struts Compatibility ??

 
jenita brown
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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to our Struts forum.

Thanks

Mark
 
Merrill Higginson
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic