Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@apache.org Received: (qmail 10861 invoked from network); 22 Jan 2003 07:52:51 -0000 Received: from exchange.sun.com (192.18.33.10) by 208.185.179.12.available.above.net with SMTP; 22 Jan 2003 07:52:51 -0000 Received: (qmail 1944 invoked by uid 97); 22 Jan 2003 07:54:19 -0000 Delivered-To: qmlist-jakarta-archive-taglibs-user@jakarta.apache.org Received: (qmail 1928 invoked by uid 97); 22 Jan 2003 07:54:19 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 1914 invoked by uid 98); 22 Jan 2003 07:54:18 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <95B0AA2B53DC854586FBD622C1C28E15063476@sto00y022.ausys.se> From: Johan Ekman To: "'taglibs-user@jakarta.apache.org'" Subject: fmt:message texts does not change when changing browser language ? Date: Wed, 22 Jan 2003 08:52:46 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N test.jsp looks as follows: <%@ taglib uri="http://java.apache.org/tomcat/fmt" prefix="fmt" %> Browser using locale:<%=request.getLocale()%>

Propertyfiles langfile_en.properties: MYLANGUAGE=English langfile_sv.properties: MYLANGUAGE=Svenska I test.jsp run with browser language settings to 'sv', all works fine first time the jsp compiles. Output: Browser using locale:sv den 22 januari 2003 Svenska Changing language settings to 'en'. The locale has changed to 'en', date is printed out in english but the fmt:message fiels is still in swedish. Browser using locale:en Wednesday, January 22, 2003 Svenska My first theory was this hade somehow to do with the users locale being stored in some session, but even closing all browsers and deleting all cookies, the error still remains. It seems the only way to make it work is to change the jsp page, causing it to be recompiled. Rerunning it again now gives the correct output: Browser using locale:en Wednesday, January 22, 2003 English However this does not seem a plausible solution. Has anyone else encountered this problem ? Thanks / Johan -- To unsubscribe, e-mail: For additional commands, e-mail: