I want to know the difference between
PortalUtil.getOriginalServletRequest(portletRequest)
and
PortalUtil.getHttpServletRequest(portletRequest).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looking at the source code for Liferay 6 (I’m assuming your’re talking about 6) you can see what PortalUtil.getOriginalServletRequest does and I’ve placed the code below:
So as the comment says, “Get original request so that the portlets inside portlets render properly”. You’ll probably only require this for a nested portlet situation or similar. Most of the time you will just need to use:
I hope this helps!