• Post Reply Bookmark Topic Watch Topic
  • New Topic

implementing interface in jsp

 
Mitika Moharil
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we implement an interface in a JSP?

If yes please explain and if no please explain. I am new to J2EE so confused with this question.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question doesn't make much sense in the modern era where there should be no Java code in the JSP, so no opportunities for interfaces or any other Java concepts. The question is also too vague to understand what it means in the grand scheme of things.
 
Ankit Garg
Sheriff
Posts: 9591
34
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an extends attribute of the page directive. You can implement a custom JSP page super class and use that class as the super class of your JSP. That class can implement the interface that you want. But as Bear said, this doesn't make much sense, who asked you this ??
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!