This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes Tree View or Menu View and Struts Compatibility ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tree View or Menu View and Struts Compatibility ??" Watch "Tree View or Menu View and Struts Compatibility ??" New topic
Author

Tree View or Menu View and Struts Compatibility ??

jenita brown
Ranch Hand

Joined: Feb 20, 2007
Posts: 51
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

Joined: Feb 05, 2001
Posts: 17250
    
    6

Moving this to our Struts forum.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Merrill Higginson
Ranch Hand

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


Merrill
Consultant, Sima Solutions
jenita brown
Ranch Hand

Joined: Feb 20, 2007
Posts: 51
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tree View or Menu View and Struts Compatibility ??