Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why PageContext.setAttribute()???

843838Sep 21 2005 — edited Sep 21 2005
Hi,

Why we are using PageContext.setAttribute(), in place of request or session??? In a tagHandler class, why we have access only to pageContext Object rather than other implicit Object??? Where u dont have to declare the pageContext object to use it.
I know that by using the pageContext Object we can get each & every implicit Object that is Ok. Where it also provides u information about the context of a page.That is also Ok.
But how come without declaring it in the Tag Handler class still u can straight away call it like:-

JspWriter jw= pageContext.getOut();

Is the pageContext Object my default is accessible in ur TagHandler?? Where other implicit Object we need to declare explicitly.
Is it the right assumption?? Pls. do correct me if i am wrong??


Thanks,
JavaCrazyLover
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 19 2005
Added on Sep 21 2005
3 comments
187 views