-
From: rf [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 1:37 AM
To: Tomcat Users List
Subject: RE: Hostname/port from ServletContext
I have been doing exactly the same. But whenever I run
my server on a different port I have to update the
configuration file. (yeah, the information
You can't. That is because the context runs in some type of service
which will present you with the requests. So only at request time can
you know the hostname and port number of the server.
For example:
I have a web server which listens on ports 8080-8090 inclusive. That
means that anyone
--- Tim Funk [EMAIL PROTECTED] wrote:
You can't. That is because the context runs in some
type of service
which will present you with the requests. So only at
request time can
you know the hostname and port number of the server.
Thanks for the info. I understand - the context is at
a
Howdy,
Put the information in a configuration file your clients read when they
start up.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: rf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 12:06 PM
To: Tomcat Users List
Subject: Re: Hostname/port from
The HttpServletRequest object contains that information, and it provides
it to you on every request.
-Tim
rf wrote:
I have some funcionality available on my server that
is supposed to be used by clients over network(http).
Now to demonstrate this I have some sample clients
within my server, how
Users List [EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 10:43 PM
Subject: Re: Hostname/port from ServletContext
The HttpServletRequest object contains that information, and it provides
it to you on every request.
-Tim
rf wrote:
I have some funcionality available on my server
: Re: Hostname/port from ServletContext
--- Tim Funk [EMAIL PROTECTED] wrote:
You can't. That is because the context runs in
some
type of service
which will present you with the requests. So only
at
request time can
you know the hostname and port number of the
server.
Thanks