* The pathname specified may be relative, although it cannot extend outside the current servlet context. find out where your html file is existing * If the path begins with a "/" it is interpreted as relative to the current context root. give the pathname is ("/*.html") // relative path from servlet root. * This method returns null if the servlet container cannot return a RequestDispatcher. Make sure that your file is existing in the specified path.
Is the html file in the same folder .I dont think so..so just specify the path according to the folder. for ex. if the servlet file is in classes folder and the html is in html folder. then write the code as getServletContext().getRequestDispatcher("../html/filename.html");