Well that piece of code should work. Maybe there is a bug in the jsp
container that you are using. It works on Tomcat 4.0 Milestone 5.
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
----- Original Message -----
From: erik morton <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 12:47 AM
Subject: implementing custom tags
> Hello.
>
> We are implementing the setPageContext method and then later writing to
> the output stream in the doStartTag method. When we test for null in the
> doStartTag Method we find out that the pageContext is null. What are we
> missing here? Any ideas would be great. Thanks.
> //
> public void setPageContext(PageContext pc) {
> this.pageContext = pc;
> }
>
> public int doStartTag() {
> if(this.pageContext == null) System.out.println("I don't get
> it!");
> }
> //
> erik
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets