logo       

[ jetty-Bugs-1033643 ] setLocale ignores <locale-encoding-mapping-list> in : msg#00055

java.jetty.general

Subject: [ jetty-Bugs-1033643 ] setLocale ignores <locale-encoding-mapping-list> in web.xml

Bugs item #1033643, was opened at 2004-09-23 20:34
Message generated for change (Comment added) made by gregwilkins
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1033643&group_id=7322

Category: Servlets
Group: None
Status: Open
>Resolution: Fixed
Priority: 5
Submitted By: Jeremy Boynes (jboynes)
>Assigned to: Jeremy Boynes (jboynes)
Summary: setLocale ignores <locale-encoding-mapping-list> in web.xml

Initial Comment:
setLocale() does not pick up the encoding defined in
the <locale-encoding-mapping-list> in web.xml if a
charset has already been defined for the request

For example, if both JAPAN and CHINA are defined in the
list the sequence
setLocale(Locale.JAPAN);
setLocale(Locale.CHINA)

leaves the encoding at that defined for JAPAN

----------------------------------------------------------------------

>Comment By: Greg Wilkins (gregwilkins)
Date: 2004-09-24 00:06

Message:
Logged In: YES
user_id=44062

Fixed in CVS.
It was in the mess about setContentType, setCharEncoding and
setLocale - all of which can try to set the encoding field!


----------------------------------------------------------------------

Comment By: Jeremy Boynes (jboynes)
Date: 2004-09-23 20:37

Message:
Logged In: YES
user_id=378919

Thinking about this a little more, the web.xml aspect may
just be a distraction - it might simply not be changing the
charset if it is already set

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1033643&group_id=7322


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise