struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Husted" <hus...@apache.org>
Subject Re: Wanna Solution on Internationalization!!!!
Date Wed, 07 Feb 2007 17:42:30 GMT
The code here appears to be trying to store the new settings for the
client as they are being changed. Of course, that's a good idea, but
it also might be confusing the markup.

First, I'd try simplifying the page so that it just changes the
locale, as we do here

* http://struts.apache.org/2.x/docs/localizing-output.html

Once that is known to work, then add the code that stores the locale
under the client's login ID.

And, of course, at some point, the login password should be removed,
as it would represent a security concern. Values like a password can
be stored in the session, which is secure, and then accessed by the
Action class as needed

-- HTH, Ted.
* http://www.husted.com/struts/


On 2/7/07, manoj sinha <manojsinha75@yahoo.com> wrote:
> Hi,
> Expecting solution:i m writing Login Form with Internationlization support.But as i 
Select Language  it doesn't reflect in Form Field.Pls Suggest ASAP
> <s:form action="Login">
>     <s:combobox  name="language" list="{'English','French','Italian'}"
>    value="English" ></s:combobox>
>   <s:textfield label="%{getText('loginlang.loginid')}" name="username"/>
>
>   <s:password label="%{getText('loginlang.password')}" name="password" />
>
>   <ul>
>     <li>
>
>   <s:submit/><s:reset/>
> </s:form>
>
> <s:url id="en" action="Login">
>             <s:param name="request_locale" >en</s:param>
>         <s:property value="getText('loginlang.language')"/>
>         <s:property value="getText('longinlang.loginid')"/>
>         <s:property value="getText('longinlang.password')"/>
>         </s:url>
>
>
>         </li>
>         <li>
>         <s:url id="fr" action="Login">
>             <s:param name="request_locale">fr</s:param>
>                  <s:property value="getText('loginlang.language')"/>
>         <s:property value="getText('longinlang.loginid')"/>
>         <s:property value="getText('longinlang.password')"/>
>         </s:url>
>
>
>         </li>
>     <li>
>               <s:url id="it"action="Login">
>         <s:param name="request_locale">it</s:param>
>         <s:property value="getText('loginlang.language')"/>
>         <s:property value="getText('longinlang.loginid')"/>
>         <s:property value="getText('longinlang.password')"/>
>
>             </s:url>
>
>         </li>
>
>
> </ul>
>
>
>
> ---------------------------------
> Don't be flakey. Get Yahoo! Mail for Mobile and
> always stay connected to friends.

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


Mime
View raw message