struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: Question about Tiles Defs...
Date Sat, 29 Nov 2003 10:12:40 GMT
On 11/28/2003 09:36 PM Timo wrote:
> Because Internatilization is a big concern, I am using the struts localization technique
to resolve labels, texts etc.
> But now, I am using the tiles-defs.xml to display the pages.
> one problem is to replace the title property, I know if I am using a regular jsp I can
use the 
> <title><tiles:getAsString name='title'/><title> and then use
> <tiles:put name="title" type="string">
>    <bean:message id="title.label"/>
> </tiles:put>
> 
> The question is, if I am using definition xml, what would be the equivalent? 

<definition name=".." extends="..." >
   <put name="tilesVarTitle" value="resource.string.title.label"/>
   ...


in jsp:
<title>
   <tiles:useAttribute name="tilesVarTitle" />
   <bean:message id="${tilesVarTitle}"/>
</title>

assuming you have EL enabled.

Adam
-- 
struts 1.1 + tomcat 5.0.14 + java 1.4.2
Linux 2.4.20 RH9

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message