Try request.getUserPrincipal().getName().

-----Original Message-----
From: Hart, Justin [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2003 12:37 PM
To: Tomcat Users List
Subject: RE: Realms & JSPs


This seems to come up null for me, as does getAuthType().

I am using JNDIRealm... but it seems to be misconfigured, before I was
not getting the box to type in my username and password, now I do, but
it does not accept my username/password combination.

Justin

-----Original Message-----
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Friday, October 31, 2003 2:58 PM
To: Tomcat Users List
Subject: Re: Realms & JSPs


request.getRemoteUser()

-Tim

Hart, Justin wrote:
> Hi, I'm kind of new to JSP programming.
> 
> I was wondering, is there a way to extract the username used to log 
> in(I am using JNDIRealm for authentication), and use that data within 
> the web application from the perspective of the JSP?
> 
> Any help would be great!
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to