Howdy, You can search the archives to find many threads like http://marc.theaimsgroup.com/?l=tomcat-user&m=106944897303254&w=2 and http://marc.theaimsgroup.com/?l=tomcat-dev&m=107339307620496&w=2
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Nord, James [mailto:[EMAIL PROTECTED] >Sent: Thursday, January 08, 2004 10:17 AM >To: '[EMAIL PROTECTED]' >Subject: Obtaining URL to web-app base in ServletContextListener. > >Hi all, > >I need to be able to find out the url to the base of an installed web-app >within a ServletContextListener (running under tomcat 4.1). > >I have not been able to find out how to obtain this information, the >closest >I have managed to get is jndi:/localhost/iPackager/ with a call to >sc.getResource("/") but I have no idea how to convert this to a http url... > >can anyone shed any light or give me some pointers to how this may be >accomplished? > >Thanks > >/James >======================================================= >Information contained in this email message is intended only for >use of the individual or entity named above. If the reader of this >message is not the intended recipient, or the employee or agent >responsible to deliver it to the intended recipient, you are hereby >notified that any dissemination, distribution or copying of this >communication is strictly prohibited. If you have received this >communication in error, please immediately notify us by email >to [EMAIL PROTECTED] and destroy the original message. 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
