What is extends attribute in JSP?


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" %>

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 30-Jul-2019

511 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements