I have this function for an insert component to display the ip fot test:

public String getIp(){
                
System.out.println(getRequestCycle().getRequestContext().getRequest().getRemoteAddr());
                return 
getRequestCycle().getRequestContext().getRequest().getRemoteAddr();
        }

The my problem is the following: I'm testing it from to IP, when I
load the page from the second IP I see the fist IP address on the
page, in InternetExplorer after a refresh I can see the right address.

But I need the correct IP when the page is loaded, what am I doing wrong?

BRG,
   Istvan

2005/12/8, Frank Russo <[EMAIL PROTECTED]>:
> cycle.getRequestContext() is deprecated in 4.0.
>
> Is there a way to do that in 4, moving forward?
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC
>
> > -----Original Message-----
> > From: Patrick Casey [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 08, 2005 3:26 PM
> > To: 'Tapestry users'
> > Subject: RE: Clinets IP
> >
> >
> >
> > cycle.getRequestContext().getRequest().getRemoteAddr();
> >
> > > -----Original Message-----
> > > From: Istvan Zakar [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, December 08, 2005 12:23 PM
> > > To: [email protected]
> > > Subject: Clinets IP
> > >
> > > Hello!
> > >
> > > My application should display a littlebit different content
> > depending
> > > on the client's IP. Is there an easy way to figure out the
> > IP address?
> > >
> > > BRG,
> > >    Istvan
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to