FileDocCategorySizeDatePackage
MyAccountAction.javaAPI DocJBoss 4.2.11543Fri Jul 13 20:56:04 BST 2007xpetstore.web.struts.action.customer

MyAccountAction

public class MyAccountAction extends xpetstore.web.struts.action.BaseAction
author
Herve Tchepannou
struts.action
name="customerForm" path="/myaccount" scope="request" validate="false"
struts.action-forward
name="success" path="/myaccount.jsp"

Fields Summary
Constructors Summary
Methods Summary
protected org.apache.struts.action.ActionForwarddoExecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

see
xpetstore.web.struts.action.BaseAction#doExecute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse)

        CustomerForm  frm = ( CustomerForm ) form;
        String        userId = ( String ) request.getSession(  ).getAttribute( USERID_KEY );

        Customer cst = getPetstore(  ).getCustomer( userId );
        frm.setCustomer( cst );

        return mapping.findForward( SUCCESS );