struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zoran Avtarovski <zo...@sparecreative.com>
Subject Re: give suggestion data display base on the Locale
Date Mon, 18 Oct 2010 10:19:29 GMT
I think you¹re missing the point.

 Instead of:
<s:param name="text" value="listValue" />

Use 
<s:param name="text" value="%{getText(listValue)}" />


Z.


> please understand this:
> 
> <s:iterator value="listObject">
> <s:component template="abc.vm">
> <s:param name="text" value="listValue" />
> <s:param name="prefix" value="listIndex" />
> </s:component>
> </s:iterator>
> 
> listValue is a values of list. i am using iterator to traverse the list. now
> on listValue, i want to put here internationalization concept.so that all
> the list value can be display based on Locale which store in a list. please
> suggest!
> 
> 
> Li Ying-2 wrote:
>> > 
>> > You can call method [getText("activity.name")] to
>> > retrieve localized string.
>> > 
>> > Read this document for more information:
>> > http://struts.apache.org/2.2.1/docs/localization.html
>> > 
>> > 
>> > 
>> > 
>> > 2010/10/15 singh123 <vij234@rediffmail.com>:
>>> >>
>>> >> <s:iterator value="listObject">
>>> >> <s:component template="abc.vm">
>>> >>        <s:param name="text" value="listValue" />
>>> >>        <s:param name="prefix" value="listIndex" />
>>> >> </s:component>
>>> >> </s:iterator>
>>> >>
>>> >> listObject is a Linked list object. listValue and listIndex is of Object
>>> >> type.
>>> >> i have two properties file:
>>> >>
>>> >> messages.properties:
>>> >> activity.name=activity
>>> >>
>>> >> messages_fr.properties:
>>> >> activity.name=activity_fr
>>> >>
>>> >>  i want to add Localization feature so that when Linked list populate
and
>>> >> display, it show text based on the Locale.
>>> >>  please suggest in this regard.
>>> >> --
>>> >> View this message in context:
>>> >> 
>>> http://old.nabble.com/give-suggestion-data-display-base-on-the-Locale-tp2997
>>> 1062p29971062.html
>>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>>> >>
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> >> For additional commands, e-mail: user-help@struts.apache.org
>>> >>
>>> >>
>> > 
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: user-help@struts.apache.org
>> > 
>> > 
>> > 


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