You are on the right track use the .properties key in the put:    

<put name="title"                       value="home.title" />

Then retrieve using importAttribute in the template:

<tiles:importAttribute name="title"/>
<title><bean:message name="title" scope="page"/></title>

Basically all you are doing is passing the .properties key - not resolving
until the template.
Cal 

http://www.calandva.com/

-----Original Message-----
From: Jeremy Tan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 16, 2002 18:43
To: Struts Users Mailing List
Subject: nesting <bean:message> within <tiles:put>

Hi,

I'm new to using tiles.  What I would like to do is to use the

<tiles:put name="title" value="some.i18n.text"/> where some.i18n.text is
from the ApplicationResources file.  I've tried nesting <tiles:put
name="title" value='<bean:message key="some.i18n.text"/>' /> but this
didn't work.  What would be the right way to do this?  Basically, I just
want to use the tiles put tag to place a message from the application
resource as the title for the jsp/html page. 

Thanks,

-Jeremy


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to