You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Daniel Anguita O." <an...@austec.cl> on 2007/03/14 22:30:18 UTC
T4.1.1 - Getting client Remote Address IP?
Hi all,
well, that's my problem.. i'm trying to get the client IP that is
connected to my tapestry app.
I have read a lot, but all the help i could find is about tap4.0, and
there are a lot of changes since that version.
So, anyone knows how to get the client remote addres, the IP? thanks!
-Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T4.1.1 - Getting client Remote Address IP?
Posted by Andrea Chiumenti <ki...@gmail.com>.
Simple:
inject the HttpServletRequest into your page
<inject property="request" object="service:
tapestry.globals.HttpServletRequest"/>
then use it into your page code:
getRequest().getRemoteAddr().
For more info:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequest.html
Ciao,
kiuma
On 3/14/07, Daniel Anguita O. <an...@austec.cl> wrote:
>
> Hi all,
>
> well, that's my problem.. i'm trying to get the client IP that is
> connected to my tapestry app.
> I have read a lot, but all the help i could find is about tap4.0, and
> there are a lot of changes since that version.
>
> So, anyone knows how to get the client remote addres, the IP? thanks!
>
> -Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>