RE: Hostname/port from ServletContext

2003-03-06 Thread Shapira, Yoav
- 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

Re: Hostname/port from ServletContext

2003-03-05 Thread Tim Funk
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

Re: Hostname/port from ServletContext

2003-03-05 Thread rf
--- 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

RE: Hostname/port from ServletContext

2003-03-05 Thread Shapira, Yoav
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

Re: Hostname/port from ServletContext

2003-03-05 Thread Tim Funk
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

Re: Hostname/port from ServletContext

2003-03-05 Thread Tomcat-RND
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

2003-03-05 Thread rf
: 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