Example usage for javax.servlet ServletException printStackTrace

List of usage examples for javax.servlet ServletException printStackTrace

Introduction

In this page you can find the example usage for javax.servlet ServletException printStackTrace.

Prototype

public void printStackTrace(PrintStream s) 

Source Link

Document

Prints this throwable and its backtrace to the specified print stream.

Usage

From source file:org.blanco.gae.blog.BlogServlet.java

public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    try {//from   w  ww. java2  s. co  m
        req.getRequestDispatcher("blog_form.jsp").forward(req, resp);
    } catch (ServletException e) {
        e.printStackTrace(resp.getWriter());
    }
}