Server-level error pages  Adding an error page

Chapter 4: Exception Handling

Error pages for Web applications

When an exception is thrown, the servlet engine searches the error page mappings for the exception and its super classes. For example, assume AException extends BException and BException extends CException and CException extends java.lang.Exception. When AException is thrown, EAServer checks if AException is mapped. If not, EAServer checks if BException is mapped, and so forth.





Copyright © 2005. Sybase Inc. All rights reserved. Adding an error page

View this book as PDF