extends JSP is one of the 14 attributes, JSP page directive supports. This attribute is used to inherit a class into JSP file.
Syntax of extends JSP
Example: <%@ page extends="pack.Demo" %>
where pack is the package name and Demo is the class that is inherited. Now,Demo class is available to the JSP file to use.
This wont work , as you know The Servlet class generated by the containter extends Class HttpJspBase