Use the following to get the user: request.getRemoteUser();
Rgds,
Chris
-----Original Message-----
From: Richard Masters [mailto:[EMAIL PROTECTED]
Sent: Thursday, 6 March 2003 20:22 PM
To: [EMAIL PROTECTED]
Subject: Obtain username from J_security_check
Hello all,
Im not sure if this is the correct mailing list for this question as it
relates to the servlet container more than anything.
I use "j_security_check" to allow users to log in to my website, and I would
like to know how I can obtain the username of those who are successfully
logged on.
I have tried:
String usrnme = request.getParameter("j_username");
but this returns null.
Can anyone help
Thanks in advance
Richard
_________________________________________________________________
Surf together with new Shared Browsing
http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html