aspose file tools*
The moose likes Websphere and the fly likes How to locate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "How to locate "system:user.dir" on websphere?" Watch "How to locate "system:user.dir" on websphere?" New topic
Author

How to locate "system:user.dir" on websphere?

Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
Hi ranchers,
Sorry for the dumb question,

In my application web.inf I got entry : system:user.dir.


How to locate the "system:user.dir" parameter value on websphere?
Thank you!
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
You can do something like System.getProperty("user.install.root"). It will give you the root folder where your WAS profile is located.
Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
Deepak Pant wrote:You can do something like System.getProperty("user.install.root"). It will give you the root folder where your WAS profile is located.

Thank you,Eventually i found the file under profile,
Is it possible to see the parameter value under the WAS console?
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
Yes you can see all such variables in WAS console. Login to WAS console and navigate to Environment -> WebSphere Variables

Look thru the list and you will find all kinds of variables
 
Don't get me started about those stupid light bulbs.
 
subject: How to locate "system:user.dir" on websphere?