String title = request.getParameter("ctitle");
float money=Float.parseFloat(request.getParameter("cmoney"));
int type=Integer.parseInt(request.getParameter("ctype"));
String detail=request.getParameter("cdetail");
String date=request.getParameter("cdate");
Consume c=new Consume();
c.setTitle(title);
c.setMoney(money);
c.setDetail(detail);
c.setTid(type);
c.setDate(TimeHelper.strtoDate(date, "yyyy-MM-dd HH:mm"));
ConsumeDAO consumeDAO=new ConsumeDAO();
consumeDAO.addConsume(c);
//response.sendRedirect("IndexAction");
PrintWriter writer = response.getWriter();
writer.print("��ӳɹ�");