protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
	{
		String pzn = request.getParameter("med");
		String anzahl = request.getParameter("anzahl");
		String action = request.getParameter("action");

		if("remove".equals(action)) {
			boolean success = false;
			if (anzahl != null && !anzahl.isEmpty()) {
				if("remove".equals(action)) {
					try(ApothekeStore apStore = new ApothekeStore()) {
						success = apStore.entnehmeMedikament(pzn, anzahl);
						if(!success) {
							synchronized(mediList) {
							mediList = apStore.getAllMeds();
							}
							for (int i=0; i<mediList.size(); i++) {
								if (Integer.parseInt(pzn) == mediList.get(i).getPzn()) {
									request.setAttribute("place", i);
									break;
								}
							}
							request.setAttribute("error", "fehler beim entnehmen");
						}
						apStore.complete();
					} catch (StoreException e) {
						request.setAttribute("error", "error");
					}
				}
				if(success) {
				response.sendRedirect("/menu");
				return;
				}
			}
		}			
		doGet(request, response);
	}