Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Redirecting to j_security_check?

843835Feb 20 2003 — edited Mar 5 2003
Hi everyone,
I want to have a login-page that evaluates the information before it does the actual login.

I have login.jsp that contains the login-form. This information is passed to another page that, through EJB (UserEJB), checks if the user is in the database. If the user is found, and the password matches, I want to log in the user. The only method I've found to log in is posting a form to j_security_check. So my questions are:

1. Can you log in without using j_security_check? The ideal case would be something like "request.getSesssion().setUser(...)".

2. Can you redirect to j_security_check and pass along the info?

Thanks in advance,
Nille
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2003
Added on Feb 20 2003
10 comments
656 views