Hi all,

I have a very strange behaviour with an internationalized page I created : the page's language is only defined when it compiles.

It means that when I try to load the same page several times with a different language each time, the page will be displayed each time in the same language than the first time.

When I delete the JSP's class file (in order to force Tomcat to recompile the page) then I get again the selected language for the very next request (and, again, all requests coming after that will receive the same language).

I hope my explanation was clear. I have no idea on what am I doing wrong ? Could someone help me ?
Thanks a lot !


Cheers,
Tom

I use Tomcat4.1.27 and the latest nightbuild of JSTL.

Here's my page code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt"; prefix="c_rt" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt"; prefix="fmt_rt" %>

<fmt:setLocale value="${param.CURRLOCALE}" scope="request"*/>
<fmt:setBundle basename="i18nsample" scope="request" />

Setting to:<c:out value="${param.CURRLOCALE}"/><br>
<table border=0 width="100%">
<tr>
<th align="left" valign="bottom"><font size=5>Internationalization example</font></th>
<hr>
<th align="right" valign="bottom">The purpose of this page is to show how internationalization (i18n) works</th>
</tr>
</table>


<p><fmt:message key="test"/> Please select a language :</p>
<ul>
 <li><a href="?CURRLOCALE=en">English</a></li>
 <li><a href="?CURRLOCALE=de">German</a></li>
 <li><a href="?CURRLOCALE=fr">French</a></li>
</ul>
<hr>

_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous ! http://search.fr.msn.be



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to