Beispiel #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());
 }
Beispiel #2
0
  public static void printResponsePrologue(HttpServletRequest req, HttpServletResponse resp)
      throws IOException {

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

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