websphere portal - Unable to get instance of RenderingContext -


I am facing a problem in introducing rendering references in portal themes of WPS8. The following are the code snippets I used to use:

  Rendering Contact RC = (Rendering Concert) request.getAttribute (Workspace .imirINNTTEXEKE); Rc.getPath ();   

When I am using the code snippet above, I am rendering the reference null . I have to get the current WCM path from the browser URL but I'm getting null Please help me in this regard.

Use the steps below to create the rendering context


Repository = WCM_API.getRepository ();

Workspace workspace = repository. Get Workspace (user, pass);

), "","connect");


In addition, a render material should be set as shown below, only the render path will be displayed:


renderingContext.setRenderedContent (siteArea);

System.out.println ("Gatepath:" + Rendering Contains. Gate Path (True));




Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -