access to pages. I want to be able to define a custom 401 error page to
show users if they are unable to log in. I should be able to do this by
putting a section like this in my web.xml:
However, when I put that entry into the web.xml, when the user clicks to
log in, it goes immediately to the error page, without even hitting my
I know what is happening: The filter sends a 401 back to the browser to
prompt the user for the password. The container intercepts this 401,
sees that it's an error, and then displays the error page resource.
Is there a way to change or work around this behavior? Surely there is
a way to display a custom 401 error page and still have basic
Thanks for any tips.
To unsubscribe, e-mail:
For additional commands, e-mail: