tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hillel Bilman" <hil...@mail.co.za>
Subject How do you use j_security within in a servlet?
Date Sun, 28 Apr 2002 23:27:28 GMT
Dear Tomcat Guru's

All the references on j-security_check I can find is from the Servlet 2.3
Specification and here is all I found:
<form method=”POST” action=”j_security_check”>
<input type=”text” name=”j_username”>
<input type=”password” name=”j_password”>
</form>

How do you use j_security in a servlet?
The user enters in a form his/her username and password, and then posts the
response to a servlet. The servlet then passes the user's username and
password internally to j_security_check and get's back if the authentication
is correct.
If the authentication is correct the servlet sends the user to the next page
and if not the user is sent to an error page.

How do you pass the username and password to j_security_check within a
servlet?

Thanks for any help
Hillel


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message