• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why SimpleTagSupport has getJSPContext()?

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm wondering why JSP2.0 spec developers created getJSPContext() method in javax.servlet.jsp.tagext.SimpleTagSupport, if we get JSPContext from getJSPBody().getJSPContext() on the same class? I know "they didn't ask us before writing specs", but I can't possibly satisfy with this answer everytime!

Appreciate your comments.

Cheers,
Naren
 
Vishwanath Krishnamurthi
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Convenience!

compare:

vs


The first one is easier to write, isn't it?
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.


Cheers,
Naren
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic