You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by "David Lemieux (QC/EMC)" <Da...@ericsson.com> on 2003/11/11 17:31:54 UTC

getServletContext() throws a NullPointerException (more detail)

If i do request.getRequestDispatcher(...) instead everything work fine.

But I still don't have access to getServletContext(). 
I suspect that my understanding of the whole java-servlet-request-dispatcher-session-context is not good enough and that I should not have accessed the servletcontext in the first place, but I still find it strange that it would throw a NullPointerException.

David Lemieux

Ericsson Canada Inc.
Email : David.Lemieux@ericsson.com
Telephone : 345-7900 #3426