e.g., there is a page that is www.aaa.com/bbb.jsp. If a user visits this page, there is the error that is "HTTP Status 500 description The server encountered an internal error () that prevented it from fulfilling this request." . Please help me to how to update the error message , or, there is not the error and go to another page, thanks !
You can customize the error page by adding the following entry to your web.xml:
<error-page> <error-code>500</error-code> <location>/yourCustomErrorPage.jsp</location> </error-page>