Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting system properties using servlets? 1

Status
Not open for further replies.

rmcweb

Programmer
Jul 26, 2001
7
US
Is it possible to write a servlet that gets the system properties of its client? I am trying to write a simple program that outputs the user name of the client, but have had little success thus far. Thanks
 
Sorry, you can't get the system properties of the client. What you can get are the HTTP request parameters which tell you about the clients browser,etc. See HTTPRequest in the API docs. FWIW, what you are trying to do is usually handled via cookies.
 
servlets run on the server so it is completely independent of the client
 
Thanks for the input; confirmed my worst fears about it, but does anyone know of a viable solution to this problem of getting a client's username? (I tried using a signed applet and RMI without success.) I would imagine this is something that's not uncommonly used.
Thanks
 
I know of great method: have the user enter it and send it to the servlet as a request parameter.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top