If I understand you correctly, I think I should have this:
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Form-Based Authentication Area</realm-name>
<form-login-config>
<form-login-page>/login</form-login-page>
<form-error-page>/jsp/security/protected/error.jsp</form-error-page>
</form-login-config>
</login-config>
But when called I receive a page not found exception. /login maps to a servlet I've been using
to test my own logging in outside of j_security_check
Should the servlet mapped to /login receive j_username and j_password?
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: 05 Oct 2011 23 41
To: Tomcat Users List
Subject: RE: Using multiple login pages
> From: Caldarale, Charles R
> Subject: RE: Using multiple login pages
> If you're already using a .jsp for the login, you have all the dynamic
> content capability you need. If instead you want the login to be
> handled by a servlet, just make the <form-login-page> setting target a
> previously defined <url-pattern> for some appropriate servlet of the webapp.
In the interest of full disclosure, I have to say that I haven't actually tried doing that...
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
|