• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

OAS 10g System Properties in JSPs

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having a problem getting System.getProperty to work right in a JSP in the Oracle Application Server 10g. I have a JSP in a web app that needs to display the System.getProperty("user.name") value. I am logged in to the WIN2K SP4 box as testuser but I get "System" as the value from the getProperty call. I must be reading application level properties and not System but I thought the System.getProperty call went all the way out to the host VM. Anybody have any ideas?
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just ran a properties dump on an OAS 10G J2EE system I'm developing and it does indeed come back with SYSTEM for user.name from a servlet.

Not sure what you were expecting though... JSP is converted to a servlet which is not going to be run as the user you are "logged in as".
 
Michael Moser
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, you're right. I was expecting something easy and hoping against hope. I didn't want to have to go through OID to read the Active Directory on the box but it looks like I have no choice.

Thanks for the reply!
 
reply
    Bookmark Topic Watch Topic
  • New Topic