private void add(HttpServletRequest request, HttpServletResponse response) throws IOException {
String id=request.getParameter("proid");
String name=request.getParameter("proname");
String price=request.getParameter("proprice");
Product pro=new Product();
ProductDao pd=new ProductDao();
pro.setId(id);
pro.setName(name);
pro.setPrice(2);
pro.setShangjia(true);
pd.save(pro);
response.sendRedirect("product.jspx?task=all");
}