FileDocCategorySizeDatePackage
RemoveItemAction.javaAPI DocJBoss 4.2.1959Fri Jul 13 20:55:42 BST 2007xpetstore.web.webwork.action.cart

RemoveItemAction

public class RemoveItemAction extends BaseCartAction
author
Herve Tchepannou
webwork.action
name="removeItem" success="cart.action"

Fields Summary
private String
_itemId
Constructors Summary
Methods Summary
protected java.lang.StringdoExecute()

see
webwork.action.ActionSupport#doExecute()

        getCart(  ).remove( _itemId );

        return SUCCESS;
    
public java.lang.StringgetItemId()

return
String

        return _itemId;
    
public voidsetItemId(java.lang.String itemId)
Sets the itemId.

param
itemId The itemId to set

        _itemId = itemId;