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 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different session tracking techniques?

1144


How do you define a servlet?

936


Whether thread can be used in servlets?

1159


What do you mean by interservlet communication?

1013


What's the servlet interface?

1029


What is life cycle of Servlet?

1020


What is servletconfig?

974


Write a command to get actual path of a servlet to the server?

968


What is cookie in servlet?

1010


What is the use of servlet wrapper classes?

1120


Who is responsible for writing a constructor?

1204


How to generate the server side programming and the advantages of it over the other languages?

940


Explain the difference between generic servlet and http servlet?

940


How do you get the ip address of the client in servlet?

948


How do you load an image in a Servlet?

1120