| Author |
how can i get the httpServletRequest in portlets(we have renderRequest), see below code
|
bharath ramv
Greenhorn
Joined: Apr 21, 2011
Posts: 9
|
|
how can i get the httpServletRequest in portlets(we have renderRequest), see below code
public void doView(RenderRequest request, RenderResponse response)
throws PortletException, IOException {----
HttpServletRequest httpRequest = (HttpServletRequest) request.getParameter("j_username");// we tried this senario but the geting value is null always.
.
.
.
}
Thanks
Bharath
|
 |
Sachin Joshi
Ranch Hand
Joined: Aug 06, 2008
Posts: 83
|
|
|
what are you trying to do here? are you trying to get the username? why do you want to use HTTP ServletRequest ? Which portal are you using? I found something for liferay here
|
Web Development Tips and Tutorials - By Sachin
|
 |
Vamshi Kumar Kota
Greenhorn
Joined: Jun 21, 2012
Posts: 1
|
|
Use following method to get HttpServletRequest
Hope this helps.
|
 |
suresh dasari
Ranch Hand
Joined: Oct 05, 2009
Posts: 120
|
|
I use the following code to get the HttpServletRequest and it is working fine
|
Sun Certified Java Programmer with 93 percent
|
 |
 |
|
|
subject: how can i get the httpServletRequest in portlets(we have renderRequest), see below code
|
|
|