[opencms-dev] CmsProperty class the correct choice to set a property?

Christian Steinert christian_steinert at web.de
Thu Aug 31 02:39:55 CEST 2006


Jan Meier schrieb:
> Hello,
>
> I want to set the locale property in my JSP-template. 
>
> Taking a look into the Api specification I found the class CmsProperty which 
> seems to handle properties. The property should be set temporarily during the 
> execution of the template code and differs with every request. 
>
> Is CmsProperty the right choice to handle this? Can I create a new CmsProperty 
> object with the name "locale" and the property is set?
>
> Thanks in advance,
>
> Regards
>
> Jan
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.

christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060831/4ae8a913/attachment.bin>


More information about the opencms-dev mailing list