seewebwork.action.ActionSupport#doExecute() Map cart = getCart( ); Integer qty = ( Integer ) cart.get( _itemId ); if ( qty == null ) { cart.put( _itemId, new Integer( 1 ) ); } else { cart.put( _itemId, new Integer( 1 + qty.intValue( ) ) ); } return SUCCESS;
Map cart = getCart( ); Integer qty = ( Integer ) cart.get( _itemId ); if ( qty == null ) { cart.put( _itemId, new Integer( 1 ) ); } else { cart.put( _itemId, new Integer( 1 + qty.intValue( ) ) ); } return SUCCESS;
returnString return _itemId;
return _itemId;
Sets the itemId.paramitemId The itemId to set _itemId = itemId;
_itemId = itemId;