Hello all,
I've managed to have successful authentication with securityFilter and
JDBCRealm.
I have a few questions that I was hoping you could clarify for me.
After the login is successful, is there any way to forward that to a
success page/action
so that I can add extra stuff to the session context? This is my
<login-config> session
in the securityfilter-config.xml file:
*<login-config>*
*<auth-method>*FORM*</auth-method>*
*<form-login-config>*
*<form-login-page>*/login.jsp*</form-login-page>*
*<form-error-page>*/error.jsp*</form-error-page>*
*<form-default-page>*/index.html*</form-default-page>*
*</form-login-config>*
*</login-config>*
My second question is concernig accessing the username value from the
session context.
How is that stored in the session? How can I access it?
My login.jsp form uses standard j_security_check for the action on the
login form, j_username, j_password for the 2 inputs.
I would like, after the login is succesful to forward that to an action
in order to access the database using the username as a key and return
an userID number that I also want to store in the session.
How can I accomplish this?
Thanks in advance,
C.F.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]