tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Server URL Before Request
Date Fri, 21 Nov 2003 21:20:06 GMT

No: this is asked frequently and I'll add it to the tomcat FAQ at some
point, but for now you can search the archive.

Out of curiosity, how would you get the context path without a request?

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Harris Reynolds []
>Sent: Friday, November 21, 2003 3:29 PM
>To: ''
>Subject: Server URL Before Request
>Is there a mgmt API that will allow me to get the URL that the server
>running on from within the servlet init method (i.e. *before* the first
>request comes in)?  ...really all I would need is the port number (the
>hostname and context paths would be easy enough to get).
>thanks for any tips,
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message