DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28248>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28248 ------- Additional Comments From [EMAIL PROTECTED] 2005-09-28 11:39 ------- To be fully precise about the problem, I decompiled the OC4J implementation and the method setLocale() calls addHeader("Content-Language", language); not setHeader which explains the problem : public void setLocale(java.util.Locale locale) { /*1805*/ if(locale == null || isIncluded) /*1805*/ return; /*1807*/ if(isCommitted() && locale != this.locale) /*1808*/ throw new IllegalStateException("Response is already committed!"); /*1811*/ this.locale = locale; /*1814*/ java.lang.String _charset = (java.lang.String)LOCALE_MAP.get (locale.toString()); /*1815*/ if(_charset == null) /*1816*/ _charset = (java.lang.String)LOCALE_MAP.get (locale.getLanguage()); /*1819*/ if(outputFetchStatus == 2 && charset != null && ! _charset.equalsIgnoreCase(charset)) /*1823*/ throw new IllegalStateException("Output writer already acquired"); /*1827*/ if(contentType != null && (charset == null || ! charset.equalsIgnoreCase(_charset))) { /*1831*/ contentType = com.evermind.server.http.EvermindHttpServletResponse.constructContentType (contentType, _charset); /*1832*/ contentTypeHeader = null; } /*1836*/ charset = _charset; /*1837*/ isCharsetSet = true; /*1840*/ java.lang.String language = locale.getLanguage(); /*1841*/ if(language != null && language.length() > 0) { /*1843*/ java.lang.String country = locale.getCountry(); /*1844*/ if(country != null && country.length() > 0) /*1845*/ addHeader("Content-Language", language + "-" + country); /*1847*/ else /*1847*/ addHeader("Content-Language", language); } } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
