This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Linking a table to s:tree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Linking a table to s:tree" Watch "Linking a table to s:tree" New topic

Linking a table to s:tree

Rohit Rai
Ranch Hand

Joined: Aug 04, 2008
Posts: 53

Does anyone know how to link a table to a tree created using s:tree
Say i am using the following code

<s:tree theme="ajax" id="root" label="Audit Test" showGrid="true">
<s:treenode theme="ajax" id="child9" label="<b>Project 9</b>" />
<s:treenode theme="ajax" id="child10" label="<b>Project 10</b>" />

Now i want to link it to a table.
Aduit Test Project Name Project Id
Project 9 test 1
Project 10 test1 2

So here the tree part will come using s:tree and the Project Name etc will be a html table or grid.
Thanks for any help,
It is sorta covered in the JavaRanch Style Guide.
subject: Linking a table to s:tree
Similar Threads
Problem in giving action on tree created using <s:tree> tag
Ajax tag is not working in strus2.1.6 with eclipse editor
How to use, struts 1-- struts-config.xml and struts 2 -- struts.xml together?
getting a selected node in a tree
Doubts In struts tree(tree attribute refers which tld file in struts)