@EntryPoint
public ActionForward showAlumniList(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) throws Exception {
AlumniSearchBean searchBean = reconstructBeanFromRequest(request);
if (!StringUtils.isEmpty(searchBean.getName()) || searchBean.getDegreeType() != null) {
List<Registration> resultRegistrations = readAlumniRegistrations(searchBean);
if (request.getParameter("sort") != null && request.getParameter("sort").length() > 0) {
resultRegistrations = RenderUtils.sortCollectionWithCriteria(resultRegistrations, request.getParameter("sort"));
} else {
resultRegistrations = RenderUtils.sortCollectionWithCriteria(resultRegistrations, "student.person.name");
}
searchBean.setAlumni(new ArrayList<Registration>(resultRegistrations));
searchBean.setTotalItems(resultRegistrations.size());
}
request.setAttribute("searchAlumniBean", searchBean);
return mapping.findForward("showAlumniList");
}