if (request.getParameter("sorted") == null) { request.setAttribute(LifeCycleConstants.VIEWSTATE_PARAM_NAME, null); }
    public ActionForward listExecutionPeriods(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws Exception {        readAndSaveAllExecutionPeriods(request);        DynaActionForm dynaActionForm = (DynaActionForm) actionForm;        String departmentID = (String) dynaActionForm.get("department");        String executionPeriodID = (String) dynaActionForm.get("executionPeriod");        if (departmentID != null && !departmentID.equals("") && executionPeriodID != null                && !executionPeriodID.equals("")) {            getListing(request, departmentID, executionPeriodID);        }        else if (departmentID == null || departmentID.equals("")) {            ActionErrors actionErrors = new ActionErrors();            actionErrors.add("error", new ActionError("error.no.deparment"));            saveErrors(request, actionErrors);                               }        else if (executionPeriodID == null || executionPeriodID.equals("")) {            ActionErrors actionErrors = new ActionErrors();            actionErrors.add("error", new ActionError("error.no.execution.period"));            saveErrors(request, actionErrors);                    }        return prepareSummariesControl(mapping, actionForm, request, response);    }