cancel
Showing results for 
Search instead for 
Did you mean: 

How to get IPortalComponentRequest Object?

Former Member
0 Kudos

Hello all,

I need to get a handle on the IPortalComponentRequest Object for the following code. A direct cast from HttpServletRequest to PortalComponentRequest throws a classcast exception. Is there any way I can get to know the name of the WD iview and its location in the pcd?

NavigationEventsHelperService navHelperService = (NavigationEventsHelperService) WDPortalUtils.getServiceReference(NavigationEventsHelperService.KEY);

IPortalComponentRequest request = (IPortalComponentRequest) httpRequest;

INavigationNode navTargetNode = navHelperService.getCurrentNavNode(request);

Thanks for your time,

Raj Balakrishnan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Raj,

I have the same problem,

Did U found a way to handle the IPortalComponentRequest Object?

Thanks,

Maya.

Former Member
0 Kudos

Hi,

Add this com.sap.ep.applicationdevelopment jar to your application.

and servlet.jar also for req and response.

Thanks,

Lohi.

Former Member
0 Kudos

Hi Lohi,

I didn't found the com.sap.ep.applicationdevelopment jar.

I add the servlet.jar, but I think U didn't understand my problem.

I work now on Web Dynpro Project, So I don't know how to handle the request object.

Usually when I work on DynPage Project I handle the request object from the parent Object:<b> IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();</b>

Thanks,

Maya.