protected ActionForward doExecute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest request,
HttpServletResponse reply) throws Exception {
PersonTimesheetForm form = (PersonTimesheetForm)actionForm;
try {
Session session = getSession(request);
try {
PersonTimesheetQuery query = new PersonTimesheetQuery(getSession(request));
query.setPersonId(form.getPersonId());
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/timesheet");
} catch (Exception ex) {
session.connection().rollback();