posted 19 years ago
hi, i have a login page, this has a form with two textfields for username, password
<form action=j_security_check>
upon submission, this mechanism works and checks if username and password exists in database and then allows the user to go on.
PROBLEM: I also need to setAttribute for a session at this point, so that in the subsequent pages I know who the user is (ie. via the username) .. in order to do that however, I would need to first 'get' the value of username field, and then 'set' the session. however my form action .. goes to this unknown j_security_check and not to a page where I have control.
so how can i incorporate some code to also set session as the value of the user as entered in the username Textfield.
thanks