Methods Summary |
---|
protected java.lang.String | doExecute()
Map cart = getCart( );
for ( int i = 0; i < _quantity.length; i++ )
{
int qty = _quantity[ i ];
if ( qty <= 0 )
{
cart.remove( _itemId[ i ] );
}
else
{
cart.put( _itemId[ i ], new Integer( qty ) );
}
}
return SUCCESS;
|
public java.lang.String[] | getItemId()
return _itemId;
|
public int[] | getQuantity()
return _quantity;
|
public void | setItemId(java.lang.String[] itemId)Sets the itemId.
_itemId = itemId;
|
public void | setQuantity(int[] quantity)Sets the quantity.
this._quantity = quantity;
|