jQuery in Action, 2nd edition*
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
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.