"David Goodenough" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I have a cluster of (currently) two Tomcat 5.5.17 instances.  I want to put 
>a
> hidden field on the pages which tells me which machine I am currently
> connected to.  Reading the spec it appeared that using:-
>
> <input type="hidden" name="host" value="${pageContext.request.serverName}" 
> />
>
> should work, but it would appear that all this does is take the server 
> portion
> of the URL.
>

You could try ${pageContext.request.localName}, but if you are using the 
AJP/1.3 Connector, that won't work either (it will be the ServerName of the 
Apache machine).

> Anyone know how to do this (short of writing some Java code that is, I 
> would
> rather use simple JSP and JSTL).
>
> David 




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

Reply via email to