saveMessages(request, messages);
saveMessages(request.getSession(), messages);
    public ActionForward delete(ActionMapping mapping, ActionForm form,                                HttpServletRequest request,                                HttpServletResponse response)    throws Exception {        if (log.isDebugEnabled()) {            log.debug("Entering 'delete' method");        }        // only allow administrators to delete        if (!request.isUserInRole(Constants.ADMIN_ROLE)) {            response.sendError(HttpServletResponse.SC_FORBIDDEN);            return null;        }                // Extract attributes and parameters we will need        ActionMessages messages = new ActionMessages();        UserForm userForm = (UserForm) form;        // Exceptions are caught by ActionExceptionHandler        UserManager mgr = (UserManager) getBean("userManager");        mgr.removeUser(userForm.getUsername());        messages.add(ActionMessages.GLOBAL_MESSAGE,                     new ActionMessage("user.deleted", userForm.getFirstName()                                       + ' ' + userForm.getLastName()));        saveMessages(request, messages);        // return a forward to searching users        return mapping.findForward("viewUsers");    }