ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanders, Brian" <BSand...@connextions.com>
Subject RE: Obtain IP address from Contexts
Date Mon, 02 Mar 2009 13:59:55 GMT
Thanks for the responses. I know how to obtain the IP address in, say,
the FTL template (already asked about that). I tried to find a request
object in the DispatchContext object to no avail. I was thinking that it
could be buried somewhere deeper and I'm really trying to figure out the
path to it if it is available in either the DispatchContext, or the
Context which is actually a Map.

-----Original Message-----
From: Kumaraswamy nandipati [mailto:kumaraswamy@ecomzera.com] 
Sent: Saturday, February 28, 2009 8:30 PM
To: user@ofbiz.apache.org; Jacques Le Roux
Subject: Re: Obtain IP address from Contexts

Hi Sanders,

Its a basic concept. getting the ip address is depends upon the Request
object scope. By using request.getRemoteAddr() will give the request IP

On Fri, Feb 27, 2009 at 10:33 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> You have to use HttpServletRequest for that. So it depends if you have
> in your context.
> If the service is used in a widget screen context you should be able
to get
> one. http://docs.ofbiz.org/x/axE
> From a job poller I guess not
> Jacques
> From: "Sanders, Brian" <BSanders@connextions.com>
> When a service is called, is it possible to obtain the remote address
> from either the DispatchContext or the Context?


View raw message