Why PageContext.setAttribute()???
843838Sep 21 2005 — edited Sep 21 2005Hi,
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