Hello P.C.
I found an example (unfortunately text strings are in mandarin) for you located at
tiles-defs.xml
<tiles-definitions>
<definition name="site.mainLayout" path="/layouts/classicLayout.jsp">
 <put name="title" value="PutTitleInMandarinHere"/>
....
</definition>
.....
</tiles-definitions>

later in /layouts/classicLayout.jsp
<html>
 <head>
 <title><tiles:getAsString name="title"/>
 </head>
</html>
http://translate.google.com/translate?hl=en&sl=zh-CN&u=http://www.cn-java.com/target/news_print.php%3Fnews_id%3D2397&prev=/search%3Fq%3D%2522tiles:getAsString%2522%2BAND%2B%2522MessageResources%2522%26hl%3Den%26lr%3D%26safe%3Dactive
HTH,
Martin-

----- Original Message ----- From: "梁炳場" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org>; "Martin Gainty" <[EMAIL PROTECTED]>
Sent: Monday, September 26, 2005 10:05 PM
Subject: Re: Why the message in ApplicationResources cannot be retrieved?


the jsp is one of the component of Tiles.
When there is error of Tiles, where are the error messages go?
Thnx

2005/9/27, Martin Gainty <[EMAIL PROTECTED]>:
You will need to localise all of your strings..Follow each of the steps
illustrated here
http://struts.apache.org/userGuide/building_view.html
HTH,
Martin-
----- Original Message -----
From: "Laurie Harper" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Monday, September 26, 2005 2:44 PM
Subject: Re: Why the message in ApplicationResources cannot be retrieved?


> 梁炳場 wrote:
>> Output of the following is only "English Chinese".
>> The message (main.home) in ApplicationResources cannot be written out.
>> No error message.
>>
>> Any advice?
>>
>> <td valign="bottom">
>> <div align="right"></div>
>> <div align="right"></div>
>> <div align="right">English Chinese <html:link action="home">
>> <bean:message key="main.home" />
>> </html:link></div>
>> </td>
>
> You need to supply more information: how are your message resources
> configured in struts-config.xml? where is your resource properties file
> stored in the deployed webapp? what does it contain? what errors (if > any)
> do you get when the page is rendered?
>
> You probably don't have your resource file in the correct place, but > it's
> impossible to be sure without more info.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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




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

Reply via email to