my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Why SimpleTagSupport has getJSPContext()? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Why SimpleTagSupport has getJSPContext()?" Watch "Why SimpleTagSupport has getJSPContext()?" New topic
Author

Why SimpleTagSupport has getJSPContext()?

Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

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


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Vishwanath Krishnamurthi
Ranch Hand

Joined: Jun 04, 2007
Posts: 331
Convenience!

compare:

vs


The first one is easier to write, isn't it?


Blog
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Thanks for your reply.


Cheers,
Naren
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why SimpleTagSupport has getJSPContext()?
 
Similar Threads
Tag Handler - how to capture body of a tag?
[OCWCD] How can I get pageContext in SimpleTagSupport Object
Doubt in Simple Tag
Chapter 13 - Question 1
Doubt in SimpleTag