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

Reply via email to