SHARE
TWEET

Untitled

a guest Sep 23rd, 2016 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Override
  2. protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
  3.  
  4.     output = resp.getWriter();
  5.  
  6.   String nickname = req.getParameter("nickName");
  7.   String  firstname = req.getParameter("firstName");
  8.   String lastname = req.getParameter("lastName");
  9.   String email = req.getParameter("email");
  10.   String password = req.getParameter("password");
  11.   String customerType = req.getParameter("customerType");
  12.  
  13.     User user = new User(nickname,firstname,lastname,email,password,customerType);
  14.  
  15.     resp.setHeader("Access-Control-Allow-Origin","*");
  16.     resp.setContentType("application/text");
  17.  
  18.     output.print(user.toString());
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top