try this:
request.getRemoteXxx();
-emmanuel
--- Cohan, Sean [EMAIL PROTECTED] a écrit :
How do I get the referrer's IP address in my action class? Thanks.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED
Is that the correct method? I get a 'can;t resolve symbol' compiler error.
Thanks.
-Original Message-
From: Emmanuel Boudrant
To: Struts Users Mailing List
Sent: 9/18/02 6:09 AM
Subject: Re: IP Address
try this:
request.getRemoteXxx();
-emmanuel
--- Cohan, Sean [EMAIL PROTECTED
Mailing List
Sent: 9/18/02 6:09 AM
Subject: Re: IP Address
try this:
request.getRemoteXxx();
-emmanuel
--- Cohan, Sean [EMAIL PROTECTED] a écrit :
How do I get the referrer's IP address in my action class? Thanks.
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands
request.getRemoteAddr();
It's in the Servlet API under ServletRequest interface
getRemoteAddr
public java.lang.String getRemoteAddr()Returns the Internet Protocol (IP)
address of the client that sent the request. For HTTP servlets, same as the
value of the CGI variable REMOTE_ADDR.
Returns
.
-emmanuel
--- Cohan, Sean [EMAIL PROTECTED] a écrit : Is that the correct method? I get a
'can;t
resolve symbol' compiler error.
Thanks.
-Original Message-
From: Emmanuel Boudrant
To: Struts Users Mailing List
Sent: 9/18/02 6:09 AM
Subject: Re: IP Address
try
Here is the correct one:
request.getHeader(referer);
Charlene
-Original Message-
From: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 9:33 AM
To: Struts Users Mailing List
Subject: RE: IP Address
I put getRemoteXxx() because you can retrice IP
in parameter.
-emmanuel
--- Cohan, Sean [EMAIL PROTECTED] a écrit : Is that the correct method? I get
a 'can;t
resolve symbol' compiler error.
Thanks.
-Original Message-
From: Emmanuel Boudrant
To: Struts Users Mailing List
Sent: 9/18/02 6:09 AM
Subject: Re: IP Address
try
Message-
From: Emmanuel Boudrant
To: Struts Users Mailing List
Sent: 9/18/02 6:09 AM
Subject: Re: IP Address
try this:
request.getRemoteXxx();
-emmanuel
--- Cohan, Sean [EMAIL PROTECTED] a écrit :
How do I get the referrer's IP address in my action class? Thanks
How do I get the referrer's IP address in my action class? Thanks.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I'm sure that there is a web site/manual/e-mail thread I'm not finding that
explains how I go about getting the client workstation IP address from the
incoming HTTP request. I need this in my Action class.
If any one could share the location of this information I would greatly
appreciate
String ip = request.getRemoteAddr();
Mark
-Original Message-
From: Struts Developer [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 12:20 PM
To: [EMAIL PROTECTED]
Subject: Getting client IP address from HTTP request
I'm sure that there is a web site/manual/e-mail thread I'm
11 matches
Mail list logo