<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-6" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jan Meier schrieb:
<blockquote cite="mid200608311325.16701.jan.meier@zmnh.uni-hamburg.de"
 type="cite">
  <pre wrap="">Hi Christian,

Am Donnerstag 31 August 2006 02:39 schrieb Christian Steinert:
  </pre>
  <blockquote type="cite">
    <pre wrap="">CmsProperty represents properties as they are stored in the database.
If you want to set the locale for one request only, then you could
append the __locale=xx parameter to your URL.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I know about the possibility to set the locale with __locale=xx, the problem 
is that it is hard to memorize. The people who edit pages in my OpenCms setup 
should create links to english content, for them it would be a lot easier if 
they just have to append locale=xx to the link url. 

You said that CmsProperty is not the right choice to set the locale, how can I 
set the locale within my jsp-code? 

Regards 

Jan
  </pre>
</blockquote>
Ok, I understand the problem, but I must say that I don't know an
elegant solution.<br>
The only (and un-elegant) solution that comes to my mind would be to do
a redirect inside of your JSP-template.<br>
<br>
Whenever you get locale=xx or lang=xx or whatever, then you do a
redirect to the same page with the parameter __locale=xx.<br>
<br>
I know that it's not terribly beautiful, but I don't know any proper
way to do it.<br>
<br>
christian<br>
</body>
</html>