1 Reply Latest reply on Apr 2, 2002 1:50 PM by awsaba

    newbie to Jboss web app

    bwoo

      I'm trying to get the Servlet Context from a servlet and I continue to null point. I'm loading a context-parm in my web.xml file. Is there a setting I missed when configuring JBoss for this to work or am I just really lost??

      Thanks

        • 1. Re: newbie to Jboss web app
          awsaba


          Without seeing your servlet code I can only make a guess.

          Are you using the javax.servlet.Servlet function getServletContext()? This is a convenience method which calls getServletContext() on the ServletConfig which is passed to the servlet's init() method. You probably need to check that your servlet init() function is calling super.init(servletConfig) to make sure the ServletConfig object is being stored for later use.