Re: Obtain username from J_security_check

"Chan, Christopher" <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.