Re: Howto get Port in HttpServlet#init(ServletConfig)?

2005-02-26 Thread Bill Barker

Patrick Wunderlich [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hey Tomcat Fans,

 is there a programmatically way to get the Http-Port
 in the HttpServlet#init(ServletConfig) method?


No, for the simple reason that the Http-Port isn't well-defined during init. 
For example, if you have both a HTTP Connector and a HTTPS Connector 
defined, then the same servlet will serve requests on both port 80 and port 
443.

 Kind Regards,
 Patrick Wunderlich
 (Germany) 




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



Howto get Port in HttpServlet#init(ServletConfig)?

2005-02-25 Thread Patrick Wunderlich
Hey Tomcat Fans,
is there a programmatically way to get the Http-Port
in the HttpServlet#init(ServletConfig) method?
Kind Regards,
Patrick Wunderlich
(Germany)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]