You should be able to get "REMOTE_ADDR" and "REQUEST_METHOD" as request properties.
-Eric Domazlicky, Eric wrote:
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 PortletWhat 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] <mailto:[email protected]> as: [email protected] <mailto:[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
smime.p7s
Description: S/MIME Cryptographic Signature
