Would you give some instructions on doing that? I tried to put <error-page>/error.html</error-page> in application own web.xml And tomcat conf/web.xml, they won't work. The HTTP Status 401 error page is still used.
Thanks, Jill -----Original Message----- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, April 23, 2009 10:18 AM To: Tomcat Users List Subject: Re: customize HTTP Status 401 error page -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jill, You've hijacked your own thread. :( On 4/23/2009 11:09 AM, Jill Han wrote: > If using Basic authentication, the unsuccessful login, or just click > "Cancel" button will trigger the 401 page. < > My question is > 1. is there a way to customize "cancel" action? So there will be no error > message prompted. No. > 2. Is there a way to customize tomcat HTTP Status 401 error message > to a more user meaningful one? Yes. See the section of web.xml that has <error-page> entries. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAknwhqwACgkQ9CaO5/Lv0PDMlwCfaUP6+zxHQPeY2aTAfnNg2vPs CGsAn1VpRpeMpCps63lgXkS8nGS1FA61 =6j3U -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org