view cart #set($session = $request.getSession()) #set($shoppingCart = $session.getAttribute("shoppingCart")) #if ($shoppingCart) #set($numItems = $shoppingCart.numberItems()) #else #set($numItems = 0) #end view cart ($!{numItems})