This syntax in an doStartTag method of an object that extends TagSupport works
fine:

pageContext.setAttribute( id, mpe3000 );

But when I use the following syntax, a null pointer exception is thrown

pageContext.setAttribute( id, mpe3000, PageContext.PAGE_SCOPE );

java.lang.NullPointerException
        at com.evermind.server.http.EvermindPageContext.setAttribute(JAX)
        at taglib.Mpe3000Tag.doStartTag(Mpe3000Tag.java:57)
        at __jspPage0._jspService(__jspPage0.java:36)
        at com.evermind.server.http.EvermindHttpJspPage.service(JAX)
        at com.evermind.server.http.HttpApplication.l7(JAX)
        at com.evermind.server.http.JSPServlet.service(JAX)
        at cm.i_(JAX)
        at cm.forward(JAX)
        at cw.ky(JAX, Compiled Code)
        at c.run(JAX, Compiled Code)



Both objects id and mpe3000 have been instantiated and are not null.

I assume that the "scope" reference in the PageContext.setAttribute(
name,object,scope ) should be one of the PageContext.XXXXX_SCOPE values.

If I am doing something wrong, please advise.

Thanks!

Evan Vaala

Reply via email to