You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Java Web Development <ja...@verizon.net> on 2008/06/13 21:38:50 UTC

RE: Ipof comments

There is an attribute in WeblogEntryComment for remoteHost. If you're
running behind apache http server and you're not doing dns lookups, which is
the default, remoteHost will be the ip address. So in many cases calling
getRemoteHost() will give you the ip address. 

Where exactly are you trying to get the ip address?



RE: Ipof comments

Posted by Java Web Development <ja...@verizon.net>.
The macros that control the comments are in
trunk/apps/weblogger/web/WEB-INF/velocity/weblog.vm

The loops that go through the comments define #comment as the identifier so
you should be able to do #comment.remoteHost

-----Original Message-----
From: Boris Milikič [mailto:boris.milikic@mf-rs.si] 
Sent: Tuesday, June 17, 2008 3:53 AM
To: dev@roller.apache.org
Subject: RE: Ipof comments

 In template. I can't find any macro to get it.

Boris

-----Original Message-----
From: Java Web Development [mailto:javawebdev@verizon.net] 
Sent: Friday, June 13, 2008 9:39 PM
To: dev@roller.apache.org
Subject: RE: Ipof comments

There is an attribute in WeblogEntryComment for remoteHost. If you're
running behind apache http server and you're not doing dns lookups, which is
the default, remoteHost will be the ip address. So in many cases calling
getRemoteHost() will give you the ip address. 

Where exactly are you trying to get the ip address?





RE: Ipof comments

Posted by Boris Milikič <bo...@mf-rs.si>.
 In template. I can't find any macro to get it.

Boris

-----Original Message-----
From: Java Web Development [mailto:javawebdev@verizon.net] 
Sent: Friday, June 13, 2008 9:39 PM
To: dev@roller.apache.org
Subject: RE: Ipof comments

There is an attribute in WeblogEntryComment for remoteHost. If you're running behind apache http server and you're not doing dns lookups, which is the default, remoteHost will be the ip address. So in many cases calling
getRemoteHost() will give you the ip address. 

Where exactly are you trying to get the ip address?