struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghuveer" <raghuve...@infotechsw.com>
Subject RE: InternetExplorer > View... > Encoding
Date Thu, 26 Jun 2008 13:35:05 GMT
Even though if client browser has languages /different q values.
In my application Language / Locale is not identified by
request.getHeader("Accept-Charset") .
SO this will be null.

I am build local object for multiple languages based on click of button.
Setting the locale object insession for Globals.LOCALE_KEY.


In JSP pages I am testing the respective locales by
request.getSession().getAttribute(Globals.LOCALE_KEY)



-----Original Message-----
From: Antonio Petrelli [mailto:antonio.petrelli@gmail.com] 
Sent: Thursday, June 26, 2008 5:35 PM
To: Struts Users Mailing List; raghuveerv@infotechsw.com
Subject: Re: InternetExplorer > View... > Encoding

2008/6/26 Raghuveer <raghuveerv@infotechsw.com>:
> Is there a way to identify in JSP or in Action File if the encoding has
been
> modified at client side by user and show a message that
>
> "This application has been design to work in UTF-8 Encoding "

Yes, check the "Accept-Charset" header field:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.2

Antonio


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


Mime
View raw message