5.5号个人冲刺(四)
昨天实现了表单提交的一些小功能
今天实现了时间的显示等细节问题
明天计划实现根据密保将密码找回
<input type="datetime-local" name="time1" id="time1"> <input type="datetime-local" name="time2" id="time2"> </td> </tr>
private void dsAdd(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { // TODO Auto-generated method stub req.setCharacterEncoding("UTF-8"); String name = req.getParameter("name"); String place = req.getParameter("place"); String time1 = req.getParameter("time1"); String time2 = req.getParameter("time2"); String people = req.getParameter("people"); System.out.print(name); if(dao.dsAdd(name,place,time1,time2,people)) { req.setAttribute("message", "Form submission was successful!"); req.getRequestDispatcher("Maintest.jsp").forward(req, resp); }else { req.setAttribute("message", "Form submission was fail!"); req.getRequestDispatcher("Maintest.jsp").forward(req, resp); } } }