You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by sajidbigler <sa...@gmail.com> on 2009/02/27 08:32:48 UTC

Re: Any Eclipse Plugin for struts 2.1.6 and does it supports i18n properly


This works  <s:text name="HelloWorld.message"/>

and <s:property value="message"/> wont work ! weird ! :(


I am doing that by using following site 

http://www.utf.ru/tables/arabic.html

i am using sample example struts2-blank-2.1.6.war

HelloWorld.jsp

    <li>
        <s:url id="url" action="HelloWorld">
            <s:param name="request_locale">ar</s:param>
        </s:url>
        <s:a href="%{url}">Arabic</s:a>
    </li>

package_ar.properties

HelloWorld.message= ت
requiredstring = ${getText(fieldName)} ة.
password = تت
username = جج
Missing.message =؃

I am sucessful to get it in tittle but not in page why? :(.its like Arbic is
not recognized in Action class i.e java like setMessage(getText(MESSAGE)); ) 


validation framework will recognizes it

    <field name="username">
        <field-validator type="requiredstring">
            <message key="requiredstring"/>
        </field-validator>
    </field>


Above will also evaluate to proper Arabic character but browser wont render
it properly if its from jsp like

This works  <s:text name="HelloWorld.message"/>

and <s:property value="message"/> wont work ! weird ! :(

I am using firefox and tools-options-advance-languages is to Arabic 

-- 
View this message in context: http://www.nabble.com/Any-Eclipse-Plugin-for-struts-2.1.6-and-does-it-supports-i18n-properly-tp22222631p22240816.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


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


Re: Any Eclipse Plugin for struts 2.1.6 and does it supports i18n properly

Posted by Musachy Barroso <mu...@gmail.com>.
Struts user mailing list that way ->

On Fri, Feb 27, 2009 at 2:32 AM, sajidbigler <sa...@gmail.com> wrote:
>
>
> This works  <s:text name="HelloWorld.message"/>
>
> and <s:property value="message"/> wont work ! weird ! :(
>
>
> I am doing that by using following site
>
> http://www.utf.ru/tables/arabic.html
>
> i am using sample example struts2-blank-2.1.6.war
>
> HelloWorld.jsp
>
>    <li>
>        <s:url id="url" action="HelloWorld">
>            <s:param name="request_locale">ar</s:param>
>        </s:url>
>        <s:a href="%{url}">Arabic</s:a>
>    </li>
>
> package_ar.properties
>
> HelloWorld.message= ت
> requiredstring = ${getText(fieldName)} ة.
> password = تت
> username = جج
> Missing.message =؃
>
> I am sucessful to get it in tittle but not in page why? :(.its like Arbic is
> not recognized in Action class i.e java like setMessage(getText(MESSAGE)); )
>
>
> validation framework will recognizes it
>
>    <field name="username">
>        <field-validator type="requiredstring">
>            <message key="requiredstring"/>
>        </field-validator>
>    </field>
>
>
> Above will also evaluate to proper Arabic character but browser wont render
> it properly if its from jsp like
>
> This works  <s:text name="HelloWorld.message"/>
>
> and <s:property value="message"/> wont work ! weird ! :(
>
> I am using firefox and tools-options-advance-languages is to Arabic
>
> --
> View this message in context: http://www.nabble.com/Any-Eclipse-Plugin-for-struts-2.1.6-and-does-it-supports-i18n-properly-tp22222631p22240816.html
> Sent from the Struts - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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