You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Patrick Cheng <pa...@hq.oneport.com> on 2003/12/19 08:06:33 UTC

Tiles and i18n

Hi all,
 
I know that Tiles support i18n by allowing multiple tiles definition
files with standard java language file extension such as _en_US , _fr
etc.  
My Master Layout file contains other pages such as the navbars, body
etc. and the ONLY single piece of information it needs to show is the
TITLE (<title></title>).  
But then the title would be different for each body.
I have set a tile attribute saying the title is 'blahblahblah', but it's
the actual value, not referencing the resource.
I want it to be i18n-capable by using msg resource bundle.  
 
Question 1: is there a way to reference the msg resource bundle in tiles
layout jsp?
Question is: do i HAVE to create multiple tiles definitions to cater the
i18n title?
 
Thanks in advance,
Patrick.

Re: Tiles and i18n

Posted by "Marino A. Jonsson" <ma...@hotmail.com>.
Just use the title-value from the tiles definition as a key to access the
real value in the resource bundle :)

cheers,
Marin�

"Patrick Cheng" <pa...@hq.oneport.com> wrote in message
news:7D991E4B633EF845B6EDEF5F1078CEA81F3442@opoas02.hq.oneport.com...
Hi all,

I know that Tiles support i18n by allowing multiple tiles definition
files with standard java language file extension such as _en_US , _fr
etc.
My Master Layout file contains other pages such as the navbars, body
etc. and the ONLY single piece of information it needs to show is the
TITLE (<title></title>).
But then the title would be different for each body.
I have set a tile attribute saying the title is 'blahblahblah', but it's
the actual value, not referencing the resource.
I want it to be i18n-capable by using msg resource bundle.

Question 1: is there a way to reference the msg resource bundle in tiles
layout jsp?
Question is: do i HAVE to create multiple tiles definitions to cater the
i18n title?

Thanks in advance,
Patrick.




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