Total Pageviews

Thursday, September 22, 2011

Extracting HttpServletRequest object from RenderRequest object

In daily coding scenario, we use some minor problem that keeps you stuck on something else for long time. The thing I'm writing today is one amongst them.
This is how we can extract the object of HttpServletRequest form RendeRequest object.
HttpServletRequest httpRequest = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(renderRequest)); This will work for you in when simple getParamater() method doesn't respond well.
Surely, it'll help you someday.