>Hi All,
>
>I am trying to get the ServletContext in the my Servlet and I am getting
the
>following exception. 

Hi,
try
        String url = "/jsp/TestProj/Test.jsp";
        ServletConfig sc = this.getServletConfig();
        ServletContext sContext = sc.getServletContext();
        RequestDispatcher rd = sContext.getRequestDispatcher(url);
        rd.forward(request, response);

Roar :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to