struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiuma <ki...@usa.net>
Subject Re: IP Address
Date Wed, 18 Sep 2002 13:38:25 GMT
This is very samrt (the hacker's one ;-P )

Yan, Charlene wrote:

>Here is the correct one:
>request.getHeader("referer");
>
>Charlene
>
>-----Original Message-----
>From: Emmanuel Boudrant [mailto:b7st@yahoo.fr]
>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 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>
>
>
>--
>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>


Mime
View raw message