Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1.  public void doGet(HttpServletRequest request,
  2.                       HttpServletResponse response) throws ServletException, IOException {
  3.  
  4.         Map<String, Object> pageVariables = createPageVariablesMap(request);
  5.  
  6.         pageVariables.put("message", "");
  7.  
  8.         response.getWriter().println(PageGenerator.instance().getPage("page.html", pageVariables));
  9.  
  10.         response.setContentType("text/html;charset=utf-8");
  11.         response.setStatus(HttpServletResponse.SC_OK);
  12.  
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement