File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to locate "system:user.dir" on websphere?
 
Similar Threads
Sample web.xml.. may be useful for SCWCD Ranchers
Java Cast with Multiple Arguments
servlet context in struts Action class
trouble with accessing jpeg image outside of webapp with getResource(AsStream)
ServletContext