Advertisements

<> wrote:
> Any API to get the current project location? Basically I need to get
> the WAR file location,
>
> For example, proj1.war is located here, and in the JSP code I can get
> the path of WAR file location.
>
> /appl/myproj/websphere/installedApps/proj1.ear/proj1.war/
> any ideas? thanks!!

You can *probably* do it, but not in a reliable way. Search Google's
USENET gateway for articles by me containing "getCodeSource", and you
can experiment with and adapt the code there.

Advertisements

<> schrieb im Newsbeitrag
news:...
> Any API to get the current project location? Basically I need to get
> the WAR file location,
>
> For example, proj1.war is located here, and in the JSP code I can get
> the path of WAR file location.
>
> /appl/myproj/websphere/installedApps/proj1.ear/proj1.war/
> any ideas? thanks!!
>

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!