Re: Question about Tiles Defs...

2003-11-29 Thread Adam Hardy
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 
titletiles: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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Question about Tiles Defs...

2003-11-28 Thread Timo
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 
titletiles: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?