Two Laptop Bag*
The moose likes Tomcat and the fly likes Tomcat Client Authentication, Need client username Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Client Authentication, Need client username" Watch "Tomcat Client Authentication, Need client username" New topic
Author

Tomcat Client Authentication, Need client username

Pally Gharmount
Ranch Hand

Joined: Aug 25, 2004
Posts: 34
Hi there.

i am hoping some one can help me.

I have a JSP page running on a Tomcat 5.0.12 Server. I need to dettect the users logged on name, possibly the windows logged on username.

If i do
<% String user= System.getProperty("user.name"); %>, I always get my name as I am logged on the server.

We did it so easily with Cold Fusion and would hate to rely on that for it to work.

Thanks in advance.
Pally
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Look into javax.servlet.http.HttpServletRequest.getUserPrincipal()
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Client Authentication, Need client username
 
Similar Threads
Help with Chat Program, update user list
How to get username of currently logged user on client machine
Not able to use two ports in RMI chat application
How to call client with the help of servlets
Need to get the user id of the machine raising the request.