what do you mean by "name of the current web application"? You can get at
the context path via HttpServletRequest.getContextPath(), which is the part
of the URL which distinguishes the app in the context of a domain/server:

public java.lang.String getContextPath()
Returns the portion of the request URI that indicates the context of the
request. The context path always comes first in a request URI. The path
starts with a "/" character but does not end with a "/" character. For
servlets in the default (root) context, this method returns "".
Returns:
a String specifying the portion of the request URI that indicates the
context of the request


-----Original Message-----
From: David Ekholm <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Date: Freitag, 3. November 2000 15:10
Subject: Name of application


>Simple question: How do I retrieve the name of the current web application
>from a servlet?
>
>/David
>


Reply via email to