Martin, I was in an assumption that Nodes will created by itself when you use that<sx:tree> tag, however when i try to execute that action, treeNodeTitle property is getting a null value and that caused the error, it took a while to figure where the error is coming from, its always poing me to some .ftl file which we have no control to edit that file. So I have initiated that by calling getproperty in java class and returned a string value, works fine. I have send the complete sample code just in case anybody wants to create a dynamic tree in future and also for our reference.
Thanks & Regards Bala T Ramanadham NOTICE TO RECIPIENT: If you are not the intended recipient of this e-mail, you are prohibited from sharing, copying, or otherwise using or disclosing its contents. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and permanently delete this e-mail and any attachments without reading, forwarding or saving them. Thank you. Martin Gainty <mgai...@hotmail.com> 06/18/2009 03:26 PM Please respond to "Struts Users Mailing List" <user@struts.apache.org> To Struts Users Mailing List <user@struts.apache.org> cc Subject RE: Struts2 Error doc says that nodeTitleProperty is an struts tree attribute as in this example <!-- Creating tree dynamically using data from backing action. --> <s:tree id="..." rootNode="..." nodeIdProperty="..." nodeTitleProperty="..." childCollectionProperty="..." /> is that what you have in your jsp? Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > To: user@struts.apache.org > Subject: Fw: Struts2 Error > From: bala.t.ramanad...@kp.org > Date: Thu, 18 Jun 2009 13:22:50 -0700 > > Hi, Can anybody help me with the error below > 6/18/09 13:07:47:968 PDT] 0000001d runtime E > > Expression stack.findValue(parameters.nodeTitleProperty) is undefined on > line 23, column 48 in template/ajax/treenode-include.ftl. > The problematic instruction: > ---------- > ==> ${stack.findValue(parameters.nodeTitleProperty)} [on line 23, column > 46 in template/ajax/treenode-include.ftl] > in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on > line 124, column 5 in template/ajax/tree.ftl] > ---------- > > Java backtrace for programmers: > ---------- > freemarker.core.InvalidReferenceException: Expression > stack.findValue(parameters.nodeTitleProperty) is undefined on line 23, > column 48 in template/ajax/treenode-include.ftl. > at freemarker.core.TemplateObject.assertNonNull( > TemplateObject.java:124) > at freemarker.core.Expression.getStringValue(Expression.java:118) > > > > Thanks & Regards > Bala T Ramanadham > > > > NOTICE TO RECIPIENT: If you are not the intended recipient of this > e-mail, you are prohibited from sharing, copying, or otherwise using or > disclosing its contents. If you have received this e-mail in error, > please notify the sender immediately by reply e-mail and permanently > delete this e-mail and any attachments without reading, forwarding or > saving them. Thank you. _________________________________________________________________ Microsoft brings you a new way to search the web. Try Bing™ now http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try bing_1x1