Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how JSP can extend servlet or interface ...?

Answer Posted / aashish r. wadhokar

no, We cannot implement an interface in a jsp bcoz jsp is an
file not a class as well as jsp is converted into a servlet
class
and this translation(jsp file to servlet class) is done by
jsp engine so we cant implement interface in jsp file.

yes, we can extend a class in jsp page using extends keyword
using extends attribute of the page directive.
eg: extends "com.classes.class"

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When servlet object is created?

1091


Which is the methods of generated servlet?

1169


What is servlet lazy loading?

1121


How can I send user authentication information while making URL Connection?

952


What is new in ServletRequest interface ? (Servlet 2.4)

976


Why doesn’t a servlet include main()? How does it work?

1112


What is the procedure for initializing a servlet?

987


Define the life cycle of a servlets.

1015


Why servlet is faster than jsp?

1018


What is the difference between servlet and jsp?

1063


List out difference between a JavaBean from a Servlet?

976


Why session tracking is needed?

989


What is the use of send redirect () method?

1036


If a servlet is not properly initialized, what exception may be thrown?

1127


What is the workflow of a servlet?

1132