Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic