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

      

  • 相关阅读:
    模拟hadoop-rpc通信
    IOUtils方式上传下载文件
    HDFS基本操作的API
    HDFS基本命令行操作及上传文件的简单API
    gcj_2016_Round1_B
    hiho_1070_RMQ
    hiho_1068_RMQ_st算法
    hiho_1067_最近公共祖先2
    hiho_1062_最近公共祖先
    hiho_1066_并查集
  • 原文地址:https://www.cnblogs.com/zzstdruan1707-4/p/10923198.html
Copyright © 2011-2022 走看看