This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android 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()
 
wood burning stoves
 
subject: Tomcat Client Authentication, Need client username
 
It's not a secret anymore!