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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]