Session session = getSession(request);
try {
form.setAllPeople(session.find("from people in class org.nxplanner.domain.Person " +
"where people.hidden = false order by name"));
AggregateTimesheetQuery query = new AggregateTimesheetQuery(getSession(request));
query.setPersonIds(form.getSelectedPeople());
query.setStartDate(form.getStartDate());
query.setEndDate(form.getEndDate());
form.setTimesheet(query.getTimesheet());
if (form.getDateFormat() == null) {
String format = getResources(request).getMessage("format.date");
form.setDateFormat(new SimpleDateFormat(format));
}
return actionMapping.findForward("view/aggregateTimesheet");