public void insertBasket(HttpServletRequest request, HttpServletResponse response){
		
		try{
			float num = Integer.parseInt(request.getParameter("number"));
			float unitPrice=Float.parseFloat(request.getParameter("unitPrice"));
		HttpSession session = request.getSession();
		String userName = ((User)session.getAttribute("userInfo")).getName();
		Basket basket = new Basket();
		basket.setBookId(Integer.parseInt(request.getParameter("bookId")));
		basket.setUserName(userName);
		basket.setName(request.getParameter("bookName"));
		basket.setNumber(Integer.parseInt(request.getParameter("number")));
		basket.setUnitPrice(Float.parseFloat(request.getParameter("unitPrice")));
		basket.setTotalPrice(num*unitPrice);
		Calendar calendar =Calendar.getInstance();
		Date date = new Date(calendar.get(Calendar.YEAR)-1900,calendar.get(Calendar.MONTH),calendar.get(Calendar.DATE));
		basket.setAddDate(date);
		BasketDAO bDAO = new BasketDAO();
		bDAO.insertBasket(basket);
		showBasket(request,response);
		}catch(Exception e){
			
			e.printStackTrace();
		}
	}