我在页面删除一条数据,有时候可以删除吊,有时候就出现空白页面,后台报数据删除失败,请问什么原因?
代码是
Action:
 int i = 0;
         ProcessForm pf = (ProcessForm)form;
         MyProjectDAO dao = new MyProjectDAO();
         Customer customer = new Customer();
     BeanUtils.copyProperties(customer,pf);
i=dao.addRecored(customer);
     if(i==1){
 System.out.println("插入记录成功");
      request.getRequestDispatcher("/process.do?param=defaultFind").forward(request, response);
           }
     else{
      System.out.println("插入失败");
     }
          return null; 
     }
}