I'm using JBoss2.4.3 with Tomcat 3.2.3 and I have a Basic HHTP Authentication. When the username and password are not correct this dialog keeps displaying. How and where may I put an error page saying "Username and password incorrect". If i hit"Cancel" it shows me a page saying "<html><body></html></body>". How may I change that?
Basic authentication is controlled entirely by the browser, so there's no concept of an error page, like there is with form authentication. It'll just keep asking you to login.