Not sure Can you not add in <put-attribute name="title" value="welcome.title"/> Before your <put-list-attribute name="tabs"> To pass the title to the template.
Dave -----Original Message----- From: Пламен Узунов [mailto:puzun...@gmail.com] Sent: 17 February 2009 17:28 To: Struts Users Mailing List Subject: Re: struts2 + tiles How will do it if you have a tiles list-attribute for title? Something like this: <definition name="tiles.tabs" extends="tiles.layout"> <put-list-attribute name="tabs"> <item value="TAB_ACTION1" link="action1.action" /> <item value="TAB_ACTION2" link="action2.action" /> <item value="TAB_ACTION3" link="action3.action" /> <item value="TAB_ACTION4" link="action4.action" /> <item value="TAB_ACTION5" link="action5.action" /> </put-list-attribute> </definition> Papi. On Tue, Feb 17, 2009 at 4:19 PM, David Kerwick <david.kerw...@hse.ie> wrote: > I had a similar issue and solved it like this > > In the definition I had > > <put-attribute name="title" value="welcome.title"/> > > And in the template I put > > <tiles:importAttribute name="title" /> > <title><s:text name="%{#attr['title']}"/></title> > > Dave > > -----Original Message----- > From: Tom Pop [mailto:tom....@email.cz] > Sent: 17 February 2009 10:56 > To: Struts Users Mailing List > Subject: struts2 + tiles > > Hello, > > please, how to insert localized string XXX as attribute in tiles > definition? > > <tiles:insertDefinition name="layout-main"> > <tiles:putAttribute name="document-title" value="XXX" /> > </tiles:insertDefinition> > > You can't use <s:text /> because it's nested in tiles tag. You can't use > getText(), I think because it's not struts tag. So, how read localized text > and insert it to tiles attribute value? > Please, provide the example, I think it should be simple, but I didn't find > any solution... > > Thanks. > Tom > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Пламен Узунов, М-Тел: 088/8869066, puzun...@gmail.com, webmas...@bgprinter.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org