public String AddCart() {
		ProductService service = new ProductService();
		try {

			// if quantity mentioned on checkout.jsp is 0 display error message
			// without adding item to the shopping cart.

			if (item.getQuantity() != 0) {
				Item item_temp = service.getItem(item.getCategory(),
						item.getTitle(), item.getLeadSinger(),
						item.getQuantity());
				if (item_temp != null) {
					this.errorMessage = item_temp.getErrorMessage();
					totalprice = (item_temp.getPrice() * item_temp
							.getQuantity()) + totalprice;
					Item temp = hasItem(shoppingcart, item_temp);
					if (temp != null) {
						shoppingcart.remove(temp);
						temp.setQuantity(temp.getQuantity()
								+ item_temp.getQuantity());
						shoppingcart.add(temp);
					} else
						shoppingcart.add(item_temp);

				} else {
					this.errorMessage = "No Item Found ";
				}
			} else {
				this.errorMessage = " No Item Added . Please Specify Quantity More than 0";

			}
		} catch (ConnectException e) {
			this.errorMessage = e.getMessage();
			e.printStackTrace();
		} catch (SQLException e) {
			this.errorMessage = e.getMessage();
		} catch (TooManyItemsFoundException e) {
			this.errorMessage = e.getMessage();
		} catch (NoStockException e) {
			this.errorMessage = "Requested Quantity Not Available. Quantity set to Available stock";
		}

		return "Add";
	}