Hi,
I have a requirement to display the name of the user who enters my jsp page by getting the username from the client's environment variables. Is this possible to do in my jsp page using java/javascript?
For eg: if ABC is the user who clicks on the link, i need to display Welcome ABC.
if XYZ is the user who clicks on the link, i need to display Welcome XYZ.
I tried using but it displays the server machine's username and not the client machine's.
Please help.
Thanks,
Jean
Vicky Vijay
Ranch Hand
Joined: Apr 23, 2008
Posts: 123
posted
0
Can your provide the below information,
Do you have login screen for your application ??
If yes,
You can access the User information from the User related tables
Bear Bibeault
Author and opinionated walrus
Marshal
I need to identify the user trying to login from his machine's environment variable(windows os) rather than asking the user to enter the information. Is that possible in jsp?
Guru Vijay wrote:Can your provide the below information,
Do you have login screen for your application ??
If yes,
You can access the User information from the User related tables
I don't have a login screen.
I need to identify the user trying to login from his machine's environment variable(windows os) rather than asking the user to enter the information. Is that possible in jsp?
Not in JSP, no. It runs on the server, as already mentioned in this thread, so naturally it couldn't get anything from the client system. However a signed applet would be able to access that data.