Which of the following is a sensible way of sending an error page to the client in case of a business exception that extends from java.lang.Exception?
a)Catch the exception and use RequestDispatcher to forward the request to the error page. b)Don't catch the exception and define the 'exception to error-page' mapping in web.xml (You can use this approach only if the business exception extends from RuntimeException.)
c)Catch the exception, wrap it into ServletException and define the 'business exception to error-page' mapping in web.xml
"Listener event", on your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.
Ping & DNS - updated with new look and Ping home screen widget