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

What are the phases of servlet life cycle?

1108


What is the life-cycle of servlets?

1137


What are the types of servlets? Explain

1257


How can we upload the file to the server using servlet?

1079


Which event is fired at the time of session creation and destroy?

1386


What is servlet and how it works?

965


What is Servlets and explain the advantages of Servlet life cycle?

1099


When to use doget() and when dopost()?

1115


Can we use threads in Servlets?

1135


What’s the difference between sendredirect and forward methods

1056


What is the difference between forward () and sendredirect () functions in servlet? Explain

1028


Which java framework is most popular?

1133


Explain request dispatcher and its methods.

985


What is servlet api used for conneting database?

1224


What's the difference between servlets and applets?

1036