String diachi = request.getParameter("diachi");
String matkhau = request.getParameter("matkhau");
String dienthoai = request.getParameter("dienthoai");
String email = request.getParameter("email");
String zipCode = request.getParameter("zipcode");
UserDAO khDAO = new UserDAOImpl();
User khTest = khDAO.getUserInfo(taikhoan);
if (khTest != null) {
model.addAttribute("info", "account is available!");
} else {
User kh = new User(taikhoan, hoten, diachi, email, dienthoai,
matkhau, zipCode, null);
boolean result = khDAO.addUser(kh);
if (result == true) {
request.setAttribute("TaiKhoan", taikhoan,
WebRequest.SCOPE_SESSION);
request.setAttribute("HoTen", kh.getName(),
WebRequest.SCOPE_SESSION);