• No replies
1569 Posts

Pinned topic Problem in fetching the path using RenderingContext object in Portal Theme

‏2013-01-04T13:01:14Z |
I am facing problem in fetching the Rendering Context in Portal Theme of WPS 6.1.5. The following is the code snippet, that I used:

RenderingContext rc = (RenderingContext) request.getAttribute(Workspace.WCM_RENDERINGCONTEXT_KEY);

When I am using the above code snippet I am getting Rendering Context as Null. I want to get the Current WCM path from the browser URL, but I am getting NULL. Please help me in this regard.

Note: I added the WCM JAR file and WCM TLD file to the Theme.

Thanks & Regards,
Aditya Mallela.