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

Is tomcat a servlet container?

1113


How are filters?

1085


Explain web application directory arrangement?

1144


What's the difference between servlets and applets?

1100


What are the drawbacks of cgi?

1117


Which is the methods of generated servlet?

1299


How do you load an image in a Servlet?

1236


Why do we have servlet wrapper classes?

1115


What do you mean by mime type?

1016


Whether we can get deadlock situation in servlets?

1122


Differentiate between the web server and application server?

1107


What is the capacity the doget can send to the server?

1131


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

1158


What are the different ways we can maintain state between requests?

1160


What is the default http method in the servlet?

1352