Re: transitioning from non-logged in to logged in using security constraint....

2004-03-12 Thread Paul Tomsic
no, my question wasn't whether request.getRemoteUser()
returns null or not.  HOW, specifically, 
does tomcat populate that information using the
j_security_check and the security-constraint nodes in
the web.xml???



__
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

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



Re: transitioning from non-logged in to logged in using security constraint....

2004-03-12 Thread Adam Hardy
On 03/12/2004 03:34 PM Paul Tomsic wrote:
What does tomcat do to ensure that you're logged in
while using the j_security_check ?
We're trying to transition users from non-logged in to
logged in, but we've got a fair amt. of portions of
the site that should be accessible from both states
(non-logged in and logged in)
Is there something, programmatically, that's done, or
is it something that tomcat simply places in the
user's session?
any advice or direction to the location in the API
would be great.
Paul,
if you're logged in, request.getRemoteUser() returns the login name you 
gave. If you're not, it returns null.

There's nothing in the session that is available to you with 
session.getAttribute(), if that's what your question was.

Check out the java API for HttpServletRequest and ServletRequest.

Adam

--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


transitioning from non-logged in to logged in using security constraint....

2004-03-12 Thread Paul Tomsic
What does tomcat do to ensure that you're logged in
while using the j_security_check ?
We're trying to transition users from non-logged in to
logged in, but we've got a fair amt. of portions of
the site that should be accessible from both states
(non-logged in and logged in)

Is there something, programmatically, that's done, or
is it something that tomcat simply places in the
user's session?
any advice or direction to the location in the API
would be great.

thanks


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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