Hello! I'm having a problem whereby I have two
java classes, one (BasketItem) which sets the values of products (e.g. title, artist, price) these are then added to an arraylist in another class (ShoppingCart). I am using
JSP to handle user requests to add products to the cart and also increment quantities. However, I am having trouble allowing users to remove items from their carts. What I have is a link next to the item to be deleted which is sent to a controlling JSP page which handles deleting the selected item from the arraylist. I can't figure out how to select the appropriate entry from the arraylist based on the name of the product, and then delete it. Can nayone help? Thanks.