struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Boudrant <b...@yahoo.fr>
Subject RE: IP Address
Date Wed, 18 Sep 2002 13:33:02 GMT

I put getRemoteXxx() because you can retrice IP or Hostname.

request.getRemoteAddr()  > IP
request.getRemoteHost()  > Hostname

BTW: Check the HttpServletRequest name in the perform(...) method parameters. getRemoteAddr()
must
be invoked on your HttpServletRequest object passed in parameter.

-emmanuel

 --- "Cohan, Sean" <SCohan@goSPS.com> 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 this:
>  
>  request.getRemoteXxx();
> 
> -emmanuel
> 
> 
>  --- "Cohan, Sean" <SCohan@goSPS.com> a écrit : > 
> > How do I get the referrer's IP address in my action class?  Thanks.
> > 
> > --
> > To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> >  
> 
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message