File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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()
 
Consider Paul's rocket mass heater.
 
subject: Tomcat Client Authentication, Need client username
 
Similar Threads
How to call client with the help of servlets
Not able to use two ports in RMI chat application
How to get username of currently logged user on client machine
Need to get the user id of the machine raising the request.
Help with Chat Program, update user list