Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call an interface in JSP

 
Abrahim Daver
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How Can I use an interface in JSP page??
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you trying to do?
 
Abrahim Daver
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have nothing to do with it, but just curious to know about it,
Can we use interface in JSP, if yes, then How??
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Putting as much effort into an answer as was put into the question:

Yes, by calling it.
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can put any java codes embedded in the jsp code

jsp coding is distancing itself from embedded raw java codes in the jsp. an alternative is using, javabeans or custom tags. you would use the javabeans and custom tags inside the jsp just like any html or xml code. so with regards to interfaces, if you ever use it, they would be in the javabeans or custom tags code, not in the jsp.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic