List<VigilantGroup> vigilantGroups = unit.getVigilantGroupsForGivenExecutionYear(executionYear); bean.setVigilantGroups(vigilantGroups); request.setAttribute("bean", bean); RenderUtils.invalidateViewState("selectGroupAndYear"); return mapping.findForward("displayGroupHistory"); }
List<VigilantGroup> vigilantGroups = unit .getVigilantGroupsForGivenExecutionYear(executionYear); bean.setVigilantGroups(vigilantGroups);  if(!bean.getSelectedVigilantGroup().getExecutionYear().equals(executionYear)) { bean.setSelectedVigilantGroup(null); } request.setAttribute("bean", bean); RenderUtils.invalidateViewState("selectGroupAndYear"); return mapping.findForward("displayGroupHistory"); }
    public ActionForward displayGroupHistory(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        VigilantGroupBean bean = (VigilantGroupBean) RenderUtils.getViewState("selectGroupAndYear")                .getMetaObject().getObject();        Unit unit = bean.getUnit();        ExecutionYear executionYear = bean.getExecutionYear();        List<VigilantGroup> vigilantGroups = unit.getVigilantGroupsForGivenExecutionYear(executionYear);        bean.setVigilantGroups(vigilantGroups);        request.setAttribute("bean", bean);        RenderUtils.invalidateViewState("selectGroupAndYear");        return mapping.findForward("displayGroupHistory");    }