home *** CD-ROM | disk | FTP | other *** search
- import java.io.IOException;
- import javax.servlet.ServletException;
- import javax.servlet.http.HttpServlet;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
-
- public class NullServlet extends HttpServlet {
- public void service(HttpServletRequest var1, HttpServletResponse var2) throws ServletException, IOException {
- throw new NullPointerException();
- }
-
- public String getServletInfo() {
- return "A servlet which demonstrates exception logging";
- }
- }
-