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:[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 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" <[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 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]> >> >>> >>> >>___________________________________________________________ >>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! >>Yahoo! Mail : http://fr.mail.yahoo.com >> >>-- >>To unsubscribe, e-mail: >><mailto:[EMAIL PROTECTED]> >>For additional commands, e-mail: >><mailto:[EMAIL PROTECTED]> >> >>-- >>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> >> >> > >___________________________________________________________ >Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! >Yahoo! Mail : http://fr.mail.yahoo.com > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > >. > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>