FileDocCategorySizeDatePackage
UpdateCustomerAction.javaAPI DocJBoss 4.2.11228Fri Jul 13 20:55:40 BST 2007xpetstore.web.webwork.action.customer

UpdateCustomerAction

public class UpdateCustomerAction extends BaseSaveCustomerAction
author
Herve Tchepannou
webwork.action
name="updateCustomer" success="index.action" error="myaccount.vm"

Fields Summary
Constructors Summary
Methods Summary
protected java.lang.StringdoExecute()

see
webwork.action.ActionSupport#doExecute()

        String result = super.doExecute(  );

        if ( SUCCESS.equals( result ) )
        {
            initSession( _customer );
        }

        return result;
    
public voidsave(xpetstore.domain.Customer customer, cirrus.hibernate.Session session)

see
xpetstore.web.webwork.action.customer.BaseSaveCustomerAction#save(xpetstore.domain.Customer, cirrus.hibernate.Session)

        Customer cst = ( Customer ) session.load( Customer.class, customer.getUserId(  ) );
        cst.set( customer );
        session.update( cst );