how to get accessed to pagecontext in a tag file in JSP2.0
843838Jul 21 2005 — edited Jul 22 2005I am writing a custom tag using JSP 2.0 to clean up the JSP pages for a big website.
Now a question comes up. I need to access pageContext variable in my tag file since I need to get the bean using a lookup method. I know in JSP2.0 there is jspContext implicit object instead of pageContext. But this is not the end of the story.
then I read Denis' post. and his solution are these two line codes:
<%
PageContext pageCtx = (PageContext)jspContext;
tagBean.init(pageCtx);
%>
I am confused here what the tagBean here. Is that a webBean? and how can I get this object in my tag so that I could initialize the pagecontext and reference it?
thanks in advance