FileDocCategorySizeDatePackage
SignonForm.javaAPI DocJBoss 4.2.11189Fri Jul 13 20:56:06 BST 2007xpetstore.web.struts.action.signon

SignonForm

public class SignonForm extends BaseForm
author
Herve Tchepannou
struts.form
name="signonForm"

Fields Summary
private xpetstore.domain.signon.ejb.Account
_account
Constructors Summary
Methods Summary
public xpetstore.domain.signon.ejb.AccountgetAccount()

        return _account;
    
public voidsetAccount(xpetstore.domain.signon.ejb.Account account)

        _account = account;
    
public org.apache.struts.action.ActionErrorsvalidate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)


    //~ Methods ----------------------------------------------------------------

             
                                    
    
        ActionErrors errors = new ActionErrors(  );

        checkNotEmpty( _account.getUserId(  ), "userId_required", errors );
        checkNotEmpty( _account.getPassword(  ), "password_required", errors );

        return errors;