Need client address in FTL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Need client address in FTL

bsanders1979
This may be more of a Freemarker question, but the only solution I found
did not work. Is it possible to obtain the client's ip address in the
FTL view template? I could probably add a variable to a class, but just
seems like a dirty hack to me.

Reply | Threaded
Open this post in threaded view
|

Re: Need client address in FTL

Kumaraswamy nandipati
Hi.,


in FTL,

to get the client's IP using request method as follows:

*${request.getRemoteAddr()}*

- try this and update me whether it is working for you or not.

On Fri, Feb 20, 2009 at 7:54 PM, Sanders, Brian <[hidden email]>wrote:

> This may be more of a Freemarker question, but the only solution I found
> did not work. Is it possible to obtain the client's ip address in the
> FTL view template? I could probably add a variable to a class, but just
> seems like a dirty hack to me.
>
>


--
Thanks,
Kumaraswamy.N
91-9866805250.
Reply | Threaded
Open this post in threaded view
|

RE: Need client address in FTL

bsanders1979
That worked! Thanks.

-----Original Message-----
From: Kumaraswamy nandipati [mailto:[hidden email]]
Sent: Friday, February 20, 2009 9:46 AM
To: [hidden email]
Subject: Re: Need client address in FTL

Hi.,


in FTL,

to get the client's IP using request method as follows:

*${request.getRemoteAddr()}*

- try this and update me whether it is working for you or not.

On Fri, Feb 20, 2009 at 7:54 PM, Sanders, Brian
<[hidden email]>wrote:

> This may be more of a Freemarker question, but the only solution I
found
> did not work. Is it possible to obtain the client's ip address in the
> FTL view template? I could probably add a variable to a class, but
just
> seems like a dirty hack to me.
>
>


--
Thanks,
Kumaraswamy.N
91-9866805250.