Realms JSPs
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! Thanks. Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]
RE: Realms JSPs
Excellent, thanks :-) -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]
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]
RE: Realms JSPs
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]
Re: Realms JSPs
The user principal is only propagated for pages which require authentication which is defined in web.xml via a security constraint. (See the manager app for an example) -Tim Hart, Justin wrote: 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]