anchor.diff:  			{
   				//redirect if not logged in
   				String uid = "" + session.getAttribute("uid");
  -				
  -				if(uid.equals("null"))
  +	
  +				
  +				if (uid.equals("null"))
   					response.sendRedirect("login.jsp");
  -			}
  -			
  -			
  -			//indicate error if page is arrived at by accidental refresh, back button, or directly without selecting "add to cart"
  -		
  +				
   				Connection conn = null;
   				PreparedStatement pstmt1 = null;
   				PreparedStatement pstmt2 = null;
  
positive.code: 				ResultSet rs4 = null;
  			
  				String product = "" + request.getParameter("product");
  				String action = "" + request.getParameter("action");
  				int quantity;
  				
  				try
  
negative.code: 							rs4.close();
  					}
  				}
  			}
  		%>
  		
  <t:footer />