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

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

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