My tomcat 5.5 server has a classic FORM based authentication method with a JDBC-REALM. Everything works fine but I would like to differentiate the login fail (wrong userId or password) from the connection error.
So I've:
<form-login-config>
<form-login-page>/secure/login.jsp</form-login-page>
<form-error-page>/secure/errorPage.jsp</form-error-page>
</form-login-config>
How can I intercept a SQL-Exception rather than an incorrect login in the errorPage.jsp?
Thanks in advance.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.