zoukankan      html  css  js  c++  java
  • 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);
    		}
    }
    }
    

      

  • 相关阅读:
    LeetCode-20.Valid Parentheses
    LeetCode-2. Add Two Numbers
    LeetCode-1. Two Sum
    LeetCode Top100 Liked Questions
    位运算
    sublime中文乱码解决办法
    jQuery 参考手册
    jQuery 参考手册
    jQuery 参考手册
    《锋利的Jquery第二版》读书笔记 第三章
  • 原文地址:https://www.cnblogs.com/zzstdruan1707-4/p/10923198.html
Copyright © 2011-2022 走看看