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 if you need to span your transaction across multiple servlet invocations?

1090


What is the servletconfig object?

1045


What is the requirement of servlet config and servlet context implemented and how are they implemented?

1006


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

1082


What do you mean by default initialization in java servlet?

1101


What is a servlet?

1142


Can you call a jsp from the servlet?

1022


How do you communicate in between Applets and Servlets?

1065


What is servlet name in web xml?

995


what do you understand by url rewriting?

960


What do you mean by web applications?

1205


What is the importance of init() method in Servlet ?

1084


How can we refresh automatically when new data has entered the database?

1114


Can we refresh servlet in client and server side automatically?

1058


Can we get PrintWriter and ServletOutputStream both in a servlet?

1146