try this ...

java.security.Principal



Principal pri;
pri = request.getUserPrincipal();

that's the only way I know of, unless you use some javascript to save the login in the session on the form ...



-Wiley





java.security.PiAt 04:13 PM 11/17/2005, you wrote:
I am using Tomcat Form-based authentication.  The user docs ask you to name
your form fields, j_username and j_password.  Then you POST to
j_security_check.  Everything is working and I get a JSESSIONID and am
forwarded to my protected user home page.



Question:  What data does Tomcat forward to the protected user home page so
I can tell which user has just logged in? I need to look up their data and
have it ready for the user home page.  What variables are there to work
with?  JSESSIONID that's it?  How about the j_username so I can use that to
make a page for that individual user?



Mike D.


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

Reply via email to