[opencms-dev] CVS HEAD - static export ignores locale

Martin Kuba makub at ics.muni.cz
Mon Jun 14 10:15:02 CEST 2004


Alexander Kandzior wrote:
> Im not sure if I fully understand what the problem is. I assume it has to to
> with the locale handler you build that uses the request context to get the
> Locale from the http header? 

No no, this problem should be present with
any locale handler, as the problem is that the locale handler
receives wrong parameters. In fact I am using the default
locale handler for static export.

Please read my next email. The problem is caused
by the fact that during static export, an OpenCms object
is initialized for every exported page by calling

cms = OpenCmsCore.getInstance().initCmsObject(null, null, 
OpenCms.getDefaultUsers().getUserExport(), null);

in the OpenCmsServlet.handle() method on line 141, thus the resource
name which gets to the locale handler is always "//"
regardles of the page being exported.


Martin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub at ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2847 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040614/52af6083/attachment.bin>


More information about the opencms-dev mailing list