Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Client Authentication, Need client username

 
Pally Gharmount
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look into javax.servlet.http.HttpServletRequest.getUserPrincipal()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic