GeeCON Prague 2014*
The moose likes JSP and the fly likes Jsp implement interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp implement interface" Watch "Jsp implement interface" New topic
Author

Jsp implement interface

Sandeep Jindal
Ranch Hand

Joined: Aug 25, 2003
Posts: 180
Hi All,
I know that JSPs cannot implement an interface, cause in general it does not make sense, cause no body is going to call the implemented method.

It can extend a class. The reason could be to use the methods of the extended class. But since the 'customised hierarchy' of a jsp does not matter much to a servlet container, why it provides an option to extend. The usage of calling implemented methods can be fulfilled by making the instance of the class, rite?

Please explain it.

Regards
Sandeep Jindal


SCJP 5.0
http://sites.google.com/site/duddlutechnologies/home
 
Consider Paul's rocket mass heater.
 
subject: Jsp implement interface