[opencms-dev] equivalent of ${opencms.uri} in the java api?

Achim Westermann a.westermann at alkacon.com
Mon Jun 29 11:14:11 CEST 2009


Hi Tim,

BTW: you should use %(opencms.uri) instead of the old ${opencms.uri} 
(latter one could collide with JSP EL) in your jsps since OpenCms 7.0.0.


Kind Regards,
Achim.

-------------------
Achim Westermann

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org




Florian Heinisch schrieb:
> Hi Tim,
> 
> get reference to the org.opencms.file.CmsRequestContext object - e.g.  
> CmsObject.getRequestContext() - on which you can call getUri()
> Have a look here:
> http://files.opencms.org/javadoc/core/org/opencms/file/CmsRequestContext.html#getUri()
> 
> Good luck,
> 
> Florian
> 
> On Jun 29, 2009, at 12:21 AM, Tim Daschner wrote:
> 
>> Hello everyone,
>>
>> How do we access the value of ${opencms.uri} in the opencms java api?
>>
>> Thanks so much!
>> Tim
>>
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please  
>> visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list