[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: j_security_check
A web
client can authenticate a user to a web server using one of the following four
mechanisms: HTTP Basic Authentication, HTTP Digest Authentication, HTTPs Client
Authentication, Form Based authentication.
The
way you mention is Form Based authentication,
In
order for the authentication to proceed appropriately, the action of the login
form must always be j_security_check. This restriction is made so that the login
form will work no matter which resource it is for, and to avoid requiring the
server to specify the action field of the outbound form.
In
your html page should look like this:
<form method="post" action="j_security_check">
<input type="text"
name="j_username">
<input type="password"
name="j_password">
</form>
You
can find more information about this in Java Servlet Specification Version2.3 -
Security chapter. (this document can be download from sun
website.
Hope
this help.
Junge
Nie
Does anyone know any good documents or resources on the web for
j_security_check?
Thanks
V.
Do You Yahoo!?
HotJobs,
a Yahoo! service - Search Thousands of New Jobs