Thank you Christian. That was the one I was looking for. I couldn't find it
previously because I was using a too-old version of the J2EE spec that was
included with JBuilder3.5. Generally don't use the latest Sun J2EE spec as
JBuilder's EJB verifier produces a load of warnings then. To bad one has to
pay around $1000 just to upgrade JBuilder3.5 Enterprise in order to easily
generate EJB compliant code :-(
/David
-----Ursprungligt meddelande-----
Fr�n: Christian Sell [mailto:[EMAIL PROTECTED]]
Skickat: den 3 november 2000 20:10
Till: Orion-Interest
�mne: Re: Name of application
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
>