how can I make my custom error pages using "errorPage" and "isErrorPage" In head first Servlets and JSP they have mentioned that by making errorPage="true" we can run the page. But in my case it ends up with an tomcat error page. But using my errorPage="false" it solves the problem. I think my syntax is wrong. Can anybody solve this problem?