• 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
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!