struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Ciasnocha ...@struts.cz>
Subject Re: Get i18n text problem
Date Mon, 09 Aug 2010 09:31:55 GMT
  Hi Franz,

you can use tag <s:property value="getText(title)" /> for text 
translation (where "title" is name of your variable).


Best regards,

Michal

Franz Wong wrote on 9.8.2010 5:14:
> Hi group,
>
> In the jsp page, I have a page scope variable "title". This variable stores
> the key of the resource bundle. I can print the value by<%= title %>.
> However, I am not able to use it with<s:text/>.
>
> I have tried<s:text name="${title}"/>  or<s:text name="<%= title %>"/>.
But
> both of them do not work.
>
> Thanks.
> Franz
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message