Skip to Content
0
Former Member
Oct 28, 2010 at 09:52 PM

unable to get IPortalComponentRequest on jsp page

44 Views

I am trying to acquire the request object from a jsp page. I have the following code:

IPortalComponentRequest request = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);

When it compiles I get the following error:

Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: C:/usr/sap/SBD/JC02/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/reporting_prototype_i/work/pagelet/_sapportalsjsp_list_caller_page.java:39: incompatible types

*found : javax.servlet.jsp.PageContext*

*required: com.sapportals.htmlb.rendering.PageContext*

PageContext pageContext = factory.getWPPageContext(componentRequest, response, null, true,8192,true);

and then about 25 more lines related to the error.

As far as I can tell I am acquiring the request correctly but it still throws this error. All the examples show javax.servlet.jsp.PageContext so Iam not sure how they do not get an error. Any help would be greatly appreciated.

Thanks

Paul