return search(mapping, request, DateFormatUtil.parse("yyyy/MM/dd", date), null, null);
final Date begin; if (selectedBegin != null && selectedBegin.length() > 0) { dynaActionForm.set("beginningHour", selectedBegin.substring(0, 2)); dynaActionForm.set("beginningMinute", selectedBegin.substring(3, 5)); begin = DateFormatUtil.parse("HH:mm", selectedBegin); } else { begin = null; } final Date end; if (selectedEnd != null && selectedEnd.length() > 0) { dynaActionForm.set("endHour", selectedEnd.substring(0, 2)); dynaActionForm.set("endMinute", selectedEnd.substring(3, 5)); end = DateFormatUtil.parse("HH:mm", selectedEnd); } else { end = null; }  return search(mapping, request, DateFormatUtil.parse("yyyy/MM/dd", date), begin, end);
    public ActionForward returnToSearchPage(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws Exception {        final DynaActionForm dynaActionForm = (DynaActionForm) form;        final String date = request.getParameter("date");        dynaActionForm.set("year", date.substring(0, 4));        dynaActionForm.set("month", date.substring(5, 7));        dynaActionForm.set("day", date.substring(8, 10));        return search(mapping, request, DateFormatUtil.parse("yyyy/MM/dd", date), null, null);    }