protected ActionForward doExecute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest request,
HttpServletResponse reply) throws Exception {
AggregateTimesheetForm form = (AggregateTimesheetForm)actionForm;
try {
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");
} catch (Exception ex) {
session.connection().rollback();
log.error("error", ex);