public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		response.setContentType("text/html");
		String Vdate = (String) request.getParameter("valuedate");
		String username = (String) request.getParameter("username");
		String action = (String) request.getParameter("action");
		String query_con = (String) request.getParameter("query_con");
		if(Vdate.indexOf("/")>-1)
		{
			Vdate = Vdate.split("/")[2] + Vdate.split("/")[0]+ Vdate.split("/")[1];
		}
		if(action.equals("check"))
		{
			Reconciliation rec = new Reconciliation();
			request.setAttribute("list", rec.Recon(username,"1020000442",Vdate));//20140512
		}
		if(action.endsWith("query"))
		{
			Reconciliation rec = new Reconciliation();
			request.setAttribute("list", rec.Query(Vdate, query_con));
		}
		request.setAttribute("vdate", Vdate.substring(4, 6)+"/"+Vdate.substring(6, 8)+"/"+Vdate.substring(0, 4));
		request.setAttribute("username", username);
		request.getRequestDispatcher("/mainpage.jsp").forward(request,response);
	}