This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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