Wednesday, April 3, 2013

How to get HttpServletRequest in JSR 168/286 portlet as it doesn't extend Servlet


In doview() method, you can use the below code.

HttpServletRequest httpServletRequest = (HttpServletRequest) (com.ibm.ws.portletcontainer.portlet.PortletUtils.getHttpServletRequest(renderRequest));

No comments:

Post a Comment