HTML checkboxes have nothing to do with Java, 6 or otherwise. They work very simply: if they are checked, their name/value pair is included in the submission, if not checked no information is included in the submission. Simple as that.
What makes you think you need to set each line item to null?
Joined: Jan 31, 2010
if a have servlets and jsps and the cart declared as session bean in a JSP, how get the obj shopping cart cart [in session.setAttribute("cart", null);] to the servlet and execute