I believe this what you are looking for.

System.out.println(getServletContext().getRealPath("http://www.mydomain.com/myapp";));

-----Original Message-----
From: ARPON Mart�n DST [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 2:46 PM
To: [EMAIL PROTECTED]
Subject: WebApp mapping


Hi, how can I know what path is my webapp
mapped to ?

I mean, if I use http://www.mydomain.com/myapp
to access the application, where how can I
obtain in servlet code the "myapp" value ?

Thanks,

Martin

___________________________________________________________________________
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

___________________________________________________________________________
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