Exemplo n.º 1
0
 public static void printResponseEpilogue(
     HttpServlet servlet, HttpServletRequest req, HttpServletResponse resp) throws IOException {
   resp.getWriter()
       .println(
           HtmlUtils.getLink(
               "/" + servlet.getServletContext().getServletContextName(), "Return to Demo"));
   resp.getWriter().println(HtmlUtils.getBodyClose());
   resp.getWriter().println(HtmlUtils.getPreFormatOpen());
 }
Exemplo n.º 2
0
  public static void printResponsePrologue(HttpServletRequest req, HttpServletResponse resp)
      throws IOException {

    resp.getWriter().println(HtmlUtils.getBodyBegin(""));
  }
Exemplo n.º 3
0
  public static void printResponseLine(
      HttpServletRequest req, HttpServletResponse resp, String line) throws IOException {

    resp.getWriter().println(line);
    resp.getWriter().println(HtmlUtils.getBreak());
  }