Howdy,
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 [mailto:hreynolds@webmethods.com]
>Sent: Friday, November 21, 2003 3:29 PM
>To: 'tomcat-user@jakarta.apache.org'
>Subject: Server URL Before Request
>
>Is there a mgmt API that will allow me to get the URL that the server
is
>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,
>~harris
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
|