Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Struts 2.0.11 localization issue

Struts 2.0.11 localization issue

2007-11-30       - By Ted Husted

 Back
The request_local functionality is part of the Interceptor stack, and
so the request has to go through as a Struts Action. An ordinary JSP
isn't processed as a Action, any more than a HTML page would be.

Otherwise, once the locale is changed, it should stick as part of the
session. The two things that could defeat the locale would be losing
the session, or resetting it with another link. The MailReader example
is localized, so the first question would be whether that example
works on the target system or not.

-- HTH, Ted
<http://www.husted.com/ted/blog/>


On Nov 30, 2007 9:42 AM, Andrew Stepanenko <andrew.stepanenko@(protected)> wrote:
> I have something similar like this. If I append request_locale=uk to a
> JSP there is no effect, and still the default locale from
> struts.properties is displayed. If I append request_locale=uk to an
> .action link, than the locale is changed, but only for this current
> HTTP request. Next clicks on links cause the default locale to be
> displayed again.
>
> Did anyone experience anything similar to the above?
>
> Thanks,
> Andrew
>
>
> On Nov 30, 2007 4:34 PM, giglian <andrea.gigliotti@(protected)> wrote:
> >
> > my web app display message in jsp page ( using <s:text name="......."/>)
> > always in one language.
> > I have two localization files (package.properties and package_it.properties
> > in the same folder), and I always get the messages in Italian language even
> > if the client language is English (en-us).
> > Rather in my production environment (O.S. Windows Server 2003 English), the
> > same web app always displaying the same messages in English language even if
> > the client language (IE 6) is Italian (it).
> > I tried to do everythings but with any result.
> > Please help me to solve this issue.
> > Thanks in advance for your time.
> >
> > Andrea

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)