This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to find OS login ID from Servlet. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to find OS login ID from Servlet." Watch "How to find OS login ID from Servlet." New topic
Author

How to find OS login ID from Servlet.

Abrahim Daver
Ranch Hand

Joined: Aug 06, 2004
Posts: 69
Hi,

How Can I find client OS's(operating system's e.g.window )Logged in User ID from Servlet. The client OS means, the OS from where that particular Servlet is requested on server.

Thanks,
Abra.
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
You can't, and it's best that way.
It would be a major security flaw if things like that were possible.


42
Abrahim Daver
Ranch Hand

Joined: Aug 06, 2004
Posts: 69
Anyway, Thax for this.
But Can I get some information about the client, who requested that servlet from servlet??
Thanks,
Abra.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If you install the LiveHTTPHeaders plugin for FireFox, you will be able to see exactly what information is passed from the client to the server in the HTTP Request Headers.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Rusty Smythe
Ranch Hand

Joined: Aug 09, 2006
Posts: 93
Why do you want to get the user's logged in name?

There may be a better way to do what you're trying to do.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to find OS login ID from Servlet.
 
Similar Threads
About HTTP Session
How to find that Cookies are supported by the browser or not
question about stateful webservice
Keeping track of session id
Need to get the user id of the machine raising the request.