File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes how can i get the httpServletRequest in portlets(we have renderRequest), see below code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "how can i get the httpServletRequest in portlets(we have renderRequest), see below code " Watch "how can i get the httpServletRequest in portlets(we have renderRequest), see below code " New topic
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: 121

I use the following code to get the HttpServletRequest and it is working fine



Sun Certified Java Programmer with 93 percent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can i get the httpServletRequest in portlets(we have renderRequest), see below code