Sometimes when we pass data from action method to a JSP and from JSP to a portlet's render phase then we need to extract HttpServletRequest object from Portlet RenderRequest object to get the parameter values.
By writing the below lines you can easily extract HttpServletRequest object from Portlet RenderRequest object:
HttpServletRequest httpRequest = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(renderRequest));
Then, you can get parameters from HttpServletRequest as below:
String emailAddressId = httpRequest.getParameter("emailId");
Hope this will help you :)
0 Comment(s)