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!

how to get accessed to pagecontext in a tag file in JSP2.0

843838Jul 21 2005 — edited Jul 22 2005
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2005
Added on Jul 21 2005
6 comments
338 views