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 types of servlets?

1015


What is the use of httpservletresponsewrapper?

980


Write a program to show the functionality of doget and dopost method?

1221


What is url encoding and url decoding

1156


How to rectify errors in java servlet while compilation?

965


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

1052


When servlet is loaded?

1082


How to get the current httpsession object?

1129


How to create war file?

1167


How many objects of a servlet is created?

1276


Elucidate servlet attributes and its scope?

1021


What are the different session tracking techniques?

1198


What is api in servlet?

1023


Explain the servlet context.

1154


What do you mean by filter in servlet?

1012