File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Accessing User Environment Variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Accessing User Environment Variables" Watch "Accessing User Environment Variables" New topic
Author

Accessing User Environment Variables

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Sep 07, 2000
Posts: 4
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
 
subject: Accessing User Environment Variables
 
Similar Threads
shailesh sonavadekar crosses the 1000 posts milestone
Anbody....giving!!!
Cannot start Tomcat3.2.1 in WinMe
WHY WOMEN LIKES TO SHOW THEIR FLASH UNLIKE MEN.
Favorite Movie