Brian Looking at public class DynamicTreeSelectAction extends ActionSupport which acquires the org.apache.struts.action2.showcase.ajax.tree.Category category by nodeID as in private Category currentCategory; when the Action class acquires the Category by nodeID e.g. public String execute() throws Exception { currentCategory = Category.getById(nodeId); return SUCCESS; } Does this answer your question?
M-- --------------------------------------------------------------------------- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --------------------------------------------------------------------------- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. ----- Original Message ----- From: "Brian Thompson" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Monday, March 19, 2007 6:43 PM Subject: [s2] Confused about <s:tree> > Hi, list > > I'm trying to render a list of objects from my action class as a tree menu > using the Struts 2 <s:tree> tag, and I'm not having any luck. I can get the > static example from planetstruts to work, but the dynamic example only > leaves me scratching my head (Without digging in the source, how am I > supposed to figure out what a Category class does?). > > The documentation for the tree tag ( > http://struts.apache.org/2.0.6/docs/tree.html) is even worse. > > Can anyone point out some examples that include what I need to set up in my > action class and how <s:tree attributes should correspond to action/model > class attributes? > > Thanks, > > -Brian >