I want to get the IP Address of the request.  This doesn't seem to be in
the Portlet Request. I suppose I could get around that with use of a
servlet and a application level session variable- but I was hoping there
was an easy way.

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Eric
Dalquist
Sent: Friday, October 30, 2009 7:57 AM
To: [email protected]
Subject: Re: [uportal-dev] How to get HTTPServletRequest in Portlet

 

What exactly are you trying to do? The JSR doesn't allow for portlet's
to have access to the HttpServletRequest.

Domazlicky, Eric wrote: 

I know this probably isn't a JSR-168 standard thing but is there a way
to get access to a HttpServletRequest from within a uPortal Portlet?
This seems to work in other portals but uPortal does not have this
attribute:

 

HttpServletRequest srvReq =(javax.servlet.http.HttpServletRequest)
request.getAttribute("javax.portlet.portletc.httpServletRequest");

 

-- 
 
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Reply via email to