The moose likes Tomcat and the fly likes security-constraint question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "security-constraint question" Watch "security-constraint question" New topic
Author

security-constraint question

Giselle Dazzi
Ranch Hand

Joined: Apr 20, 2003
Posts: 168
Hi everybody,
Im using the <security-constraint> feature of Tomcat. Everything works well, but I dont know how to retrieve the login entered during authentication to use it throughout my application... Have you guys done this before ?
thx
My login page is specified in my web.xml:


Giselle Dazzi<br />SCJP 1.4
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

There are a number of methods on the HttpServletRequest object.

isUserInRole()
getUserPrincipal()
getRemoteUser()


Do those help?
[ November 04, 2003: Message edited by: Mike Curwen ]
Giselle Dazzi
Ranch Hand

Joined: Apr 20, 2003
Posts: 168
Thanks, that helps...
 
 
subject: security-constraint question
 
Threads others viewed
Is auth-constraint related to security-role?
Basic Authentication using web.xml
DD entries for authentication
ties form base authentication with database (weblogic 8.1)
HTTP 403 for authenticated users - FIXED
developer file tools