you need to create a separate page for an error and configure your web.xml file to direct onto this error page ass soon as an error is caught