protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		RequestDispatcher rd = null;
		Enumeration<String> enumeratie = req.getParameterNames();
		
		while(enumeratie.hasMoreElements()) {
							String name = enumeratie.nextElement();
							if (name.startsWith("prod_" )) {
								int id = Integer.parseInt(name.substring(name.indexOf('_')+1));
								int aantal = 0;
								if(!req.getParameter(name).equals("")){
									aantal = Integer.parseInt(req.getParameter(name));
								}
								
			 					try {
			 						producten.vrdInBestelling(id, aantal, producten.getBestellingById(id));
									//producten.changeVoorraad(id, aantal, producten.getVoorraadById(id));
								} catch (SQLException e) {
									// TODO Auto-generated catch block
									e.printStackTrace();
								}
			 					
			 					Product p = producten.getOnderdeelFromID(id);
			 					
			 					if(p.getType() == 1){
			 						type = "brandstof";
			 					}else{
			 						type = "onderdelen";
			 					}
			 					
			 				}
		}
		
		producten.getAlleOnderdelen();
		
			rd = req.getRequestDispatcher(type + "_bestellen.jsp");
			rd.forward(req, resp);
	}