« Return to Thread: [auth] Error when I try to do login

Re: [auth] Error when I try to do login

by svetrini :: Rate this Message:

Reply to Author | View in Thread

On Mon, 2008-05-12 at 18:54 +0200, Rocco Fusella wrote:
> How can I do to manage this this exceptional viewing the login page if
> the credentials are wrong?
you must manage it like a normal exception for a jsp.
you must add control in your web.xml
for example:

<error-page>
<exception-type>net.smartlab.web.auth.AuthenticationException</exception-type>
<location>/authException.do</location>
</error-page>

<error-page>
<exception-type>net.smartlab.web.auth.AuthorizationException</exception-type>
<location>/authException.do</location>
</error-page>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
smartweb-user mailing list
smartweb-user@...
https://lists.sourceforge.net/lists/listinfo/smartweb-user

 « Return to Thread: [auth] Error when I try to do login