Looking at the source code for Liferay 6 (I assume you're talking about 6), you can see what PortalUtil.getOriginalServletRequest does, and I posted the code below:
public HttpServletRequest getOriginalServletRequest( HttpServletRequest request) { HttpServletRequest originalRequest = request; while (originalRequest.getClass().getName().startsWith( "com.liferay.")) {
So, as the comment says: "Get the original request so that the portlets inside the portlets display correctly." You probably only need this for a nested portlet or similar situation. In most cases, you just need to use:
PortalUtil.getHttpServletRequest(portletRequest);
Hope this helps!
source share