Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp implement interface

 
Sandeep Jindal
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic