Jasmine,
Can you be more precise about the content in the shopping cart. How is it displayed?
Something about your design and UI.
Since nothing much is available lets assume that you display the content of the cart as images.
So for each item you can add a delete link/button.
for a button on UI here would be the code.
The value of id in the 'someDeleteBean' will be automatically populated with the itemcode.
So, in the delete method just take the id value and delete the respective item from the session container.
Hope this helps
Pradeep