Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing User Environment Variables

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
I am new to this servlet thing, so be nice, okay?
I need to know how to access user environment variables from the server side. Namely the user_name and computer_name.
If anyone has any idea it would be deeply appreciated.
 
R Mutum
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Patricia:
Try getRemoteUser() and getRemoteHost() methods of the
request object.
e.g.,
out.println("User :" + req.getRemoteUser());
where req is the request object.
Thanks.
RM
----------------------
Originally posted by Patricia Fisher:
I am new to this servlet thing, so be nice, okay?
I need to know how to access user environment variables from the server side. Namely the user_name and computer_name.
If anyone has any idea it would be deeply appreciated.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic