LogSearchForm searchForm = (LogSearchForm) form;
if (searchForm.getTimeStart() == null) {
searchForm.setTimeStart(Utility.toTimestamp(new Date(System.currentTimeMillis() - 24 * 3600 * 1000)));
}
ActionMessages errors = searchForm.check();
if (errors.size() > 0) {
context.setAttribute("logs", new ArrayList<AccessLog>());
return this.handleFailure(mapping, context, errors);
}
int page = Utility.parseInt(context.getRequest().getParameter("page"));