Sorry if this is a dummy question but I could not find a servlet API to do
this.

If my servlet received a request from HTTPS connection and would like to call
another servlet via HTTP (no SSL), I need to find the HTTP port number. Of
course I can hard code the number or read it from a property file, but I would
like to know if there is a servlet API to get the port number for me at run
time?

Please don't tell me "servlet-to-servlet communication is bad" as I saw
discussions from the list before (I have my reason to use this), or to use
request.getServerPort() as it will give me the SSL port number. I need another
API, some where from the servlet engine or servlet config or context ...


Many thanks and best regards,


Charles

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to