public String projectIndex() throws Exception { String id = (String) session.get(BaseAction.BASEIDINSESSION); int startIndex = (page - 1) * Constants.DefaultPageSize; if (startIndex < 0) startIndex = 0; projectPage = projectService.getPage(id, year, Constants.DefaultPageSize, startIndex, null, true); return SUCCESS; }