AccountActionForm workingAcctForm = (AccountActionForm) form;
AccountActionForm acctForm = (AccountActionForm) request.getSession().getAttribute("accountForm");
String username = acctForm.getAccount().getUsername();
if (workingAcctForm.getAccount() == null) {
Account account = getPetStore().getAccount(username);
workingAcctForm.setAccount(account);
}
if (workingAcctForm.getCategories() == null) {
List categories = getPetStore().getCategoryList();
workingAcctForm.setCategories(categories);
}
return mapping.findForward("success");