tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stan <>
Subject getServletContext() returning null...
Date Mon, 14 Jan 2002 14:38:42 GMT
I have a servlet in which I am trying to pass control to a JSP page to
conform with the JSP Model 2 scenario. I am using Tomcat 3.3 under Win98 and
have setup a webapp (jforum) with the config files as listed below. For some
reason when I try to obtain the ServletContext for the servlet in order to
dispatch the request over to the JSP I get null back from the
getServletContext() call. Is there anything in the configuration I have
supplied which would stop this context being created appropriately? I would
presume that a servlet would necessarily be part of a ServletContext, and
therefore it couldn't return null, but perhaps I am wrong.

Any help much appreciated, as this is driving me up the wall!


<?xml version="1.0" encoding="ISO-8859-1"?>
    <Context path="/jforum" 
             debug="9" />

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"

	A web-based forum system, allowing threaded topics.



To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message