• 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);
    		}
    }
    }
    

      

  • 相关阅读:
    13-17读后感
    读10 11 12章
    读书作业
    5.2.3
    测试与封装
    作业四
    作业三
    实验四 主存空间的分配和回收模拟
    评论
    实验三 进程调度模拟程序
  • 原文地址:https://www.cnblogs.com/zzstdruan1707-4/p/10923198.html
Copyright © 2020-2023  润新知