to the error page. Since JSP error pages are meant to inform on uncaught exceptions, you ll use error pages to report on such exceptions rather than attempt recovery. The JSP page MyErrorPage.jsp must have a page directive with the isErrorPage attribute set to true. The isErrorPage Attribute The isErrorPage attribute indicates whether or not the JSP page is the URL coded in another JSP page s errorPageattribute. The value of isErrorPage is either true or false. The default value of the isErrorPage attribute is false. The extends Attribute The extends attribute specifies a superclass that the generated servlet must extend. For example, the following directive directs the JSP translator to generate the servlet such that the servlet extends somePackage.SomeClass: <%@ page extends="somePackage.SomeClass" %> Do you see a potential problem with coding a value for the extends attribute? The server may be using a superclass already, or may require that generated servlets extend another, different superclass than the superclass coded as a value for the extends attribute. If you use the extends attribute, be careful. The import Attribute The import attribute serves the same function as, and behaves like, the Java import statement. Classes coded as values for the import attribute are made known to the generated servlet. If you do not code any page directives with import attributes, the generated servlet imports, at a minimum, the following classes: l java.lang.* l javax.servlet.* l javax.servlet.jsp.* l javax.servlet.http.*
Get account with us and you will get completely access to our free web templates database with over 10.000 templates in it to build your website.Don’t wait, go and check free web templates.