You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Manish <pr...@gmx.net> on 2005/04/08 07:50:31 UTC

Weird execution of code

Something weird is happening here...
I have this piece of code in my Velocity template file -

$request.getLocalAddr()

This works fine on other machine and gives the correct local IP, however on
other machine this results in null value, why is it so?
What configuration issue could affect this? Any other ideas? I am lost...

TIA,
- Manish




---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Weird execution of code

Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Manish,

> Something weird is happening here...
> I have this piece of code in my Velocity template file -
> 
> $request.getLocalAddr()
> 
> This works fine on other machine and gives the correct local IP, however on
> other machine this results in null value, why is it so?
> What configuration issue could affect this? Any other ideas? I am lost...

You can investigate by checking the difference between the working and
non-working machines.
- Which servlet container?  Which version?  What configuration?
- Which platform?  Which hardware?  Whatever...

Best regards,
-- Shinobu

--
Shinobu Kawai <sh...@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org