• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can we implement an interface in JSP  RSS feed

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we cant implement interfaces in JSP then what is the purpose of implement attribute?
 
krishnaraj sg
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

if u see the JSP speciicaton...it wont allow u to implement any interfaces in the jsp.
 
Kriti Garg
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can u tell why there is restriction of not implementing an interface in jsp?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean implement an interface?
Do you want the JSP itself to be an implementation of something?
If so, why?
 
Kriti Garg
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean in page directive of jsp
we have 'extends' but not 'implements' why is it so?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adding an 'implements' directive would make a JSP an "instance of" something.
Why would you want to do that?

JSP is a templating technology for displaying markup pages.
What would the 'implement' directive give you?
What would you do with it?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!