Skip to Content
0
Former Member
Aug 22, 2008 at 09:18 AM

JSPBYNAPAGE ERROR

7 Views

Hi All,

I am creating jspdynapages , i am accesing Iviws through pcdloolup , if i am lookup page i am getting exception ClassCastException , what Exactly i heve to look up page or folder , please replay ,This is the code i wrote , myPage =(IPage)iCtx.lookup("pcd:portal_content/seshaportal.seshaportal") if i am loking this page i am getting

Code

obj = new Hashtable();

obj.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);

obj.put(Context.SECURITY_PRINCIPAL, request.getUser());

obj.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);

iCtx = new InitialContext(obj);

response.write("ictx-------"+iCtx);

response.write("page-------"+iCtx.lookup("pcd:portal_content/seshaportal.seshaportal"));

myPage =(IPage)iCtx.lookup("pcd:portal_content/seshaportal.seshaportal")

End Code