Christopher Loschen wrote:
Hi all,My best guess is that this is happening before Struts gets involved, but I wondered if anyone might have some suggestions or places for me to look. I'm having some strange i18n behavior on our initial login page. Our app is still using Struts 1.1 (don't ask..). We're using form-based authentication through WebLogic, set up pretty much plain vanilla from what I can tell (from the web.xml): <login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/login.jsp</form-login-page> <form-error-page>/login_error.jsp</form-error-page> </form-login-config> </login-config> User gets redirected to the login page, it appears, before the Struts actions are called at all, because I can't seem to find anyplace to puta breakpoint in my debugger.
Right; the container sees that the request is not authenticated and transfers control to the login page before allowing any 'normal' request processing to occur.
The problem is that when I have more than one locale defined in my browser preferences (either in IE or FF), it doesn't take the default first choice (which is en_us) but one of the others instead. I don't have the same problem on other internationalized web sites, so I presume it's a problem in my code or configuration or something, but I'm not sure where to start looking. Oh, by the way, once the user logs in, there are user preferences for locale which kick in, but those obviously don't apply to this page because there's no user in the session as of yet, so it has to be getting the locale from the browser preferences.
You don't describe how you have localized your login page so it's impossible to offer very specific advice. However, since this the login page is effectively outside of Struts, any locale selection logic must also be outside of Struts. In other words, you're dealing with standard HTTP Servlet behaviour.
That said, I'm not sure exactly how 'standard' that behaviour is; it may be container dependent. Therefore, I'd recommend asking on the support forums or mailing lists for whatever servlet container you're using (Tomcat?)
L. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

