Gary
Gary

Reputation: 163

How to find the publish path in Websphere Application Server v8.0

In my local workspace, i separated my application into several web applications, which are wrapped with EAR, then publish it to Websphere Application Server v8.0, in previous version of WAS, i can find the place that my WAS published, but i can't find it for WAS v8.0, anybody have idea.

BTW, i am using IBM Rational Application Developer v8.5.

Upvotes: 2

Views: 1413

Answers (1)

Paul Vargas
Paul Vargas

Reputation: 42060

Execute a simple JSP file in your Web Application with the following lines:

<h1>Real Path for this Context</h1>
<hr>
<h3>${pageContext.servletContext.getRealPath('')}</h3>

You'll get the real path from which Websphere is serving the published files for the context that you are testing.

Upvotes: 0

Related Questions