Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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!
 
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
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic