@RequestMapping(value = "/modify", method = RequestMethod.POST)
	public String modifyData(Model model, HttpServletRequest req, HttpServletResponse resp) throws IOException{
		Date date = new Date();
		DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
		String formattedDate = dateFormat.format(date);
		
		String email = req.getParameter("email");
		String passwd = req.getParameter("passwd");
		
		PrintWriter out = resp.getWriter();
		
		if(email!="" && passwd!=""){
			Pattern p = Pattern.compile("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$");
			Matcher m = p.matcher(email);
			if(!m.matches()){
				out.println("<script>alert('올바른 이메일 주소를 입력하세요');</script>");
			}
			else{
				VisitorObj obj = objDao.getObj(email);
				if(obj == null) out.println("<script> alert('사용자가 존재하지 않습니다.'); </script>");
				else{
					//password 유효성 검사
					if(!obj.getPassword().equalsIgnoreCase(passwd))
						out.println("<script>alert('비밀번호가 올바르지 않습니다.');</script>");
					else{
						objDao.modify(email, req.getParameter("content"));
						timeDao.modify(email, formattedDate);
					}
				}
			}
		}
		else{
			out.println("<script>alert('이메일과 비밀번호를 입력하세요');</script>");
		}
		
		logger.info("db modify action");
		
		list = objDao.searchAll();
		model.addAttribute("lists",list);
		
		out.flush();
		return "home";
	}