Question: how jsp pages are handled?
Answer: Using JSP Error Pages Any runtime error encountered during execution of a JSP page is handled using the standard Java exception mechanism in one of two ways: You can catch and handle exceptions in a Java scriptlet within the JSP page itself, using standard Java exception-handling code.