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 / jayakrishna

We cannot implement an interface in a jsp but we can extend
a class in JSP by using extends attribute of the page
directive.

extends "package.class"
The fully qualified name of the superclass of the Java
class file this JSP file will be compiled to. Use this
attribute cautiously as it can limit the JSP container's
ability to provide a specialized superclass that improves
the quality of the compiled file.


Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ServletConfig object?

1185


What is the difference between the servlets and cgi programs?

998


What is the process for chaining servlet?

1054


What are the differences between forward() method and sendredirect() methods?

1030


Explain the difference between get and post method in servlet?

1144


How to create war file?

1164


What is the difference between genericservlet and httpservlet

1095


How to commuincate between an applet and a servlet?

1057


Can filter be used as request or response?

971


What is the procedure for initializing a servlet?

1041


What is the difference between the include() and forward() methods?

1084


What are the different session tracking techniques?

1198


How can we invoke another servlet in a different application?

1217


What do you mean by httpservlet and how it is different from the genericservlet?

1056


Why do we use sendredirect() method?

978