}
public ActionForward cancelEvent(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws FenixServiceException {
final CancelEventBean cancelEventBean = getCancelEventBean();
try {
CancelEvent.run(cancelEventBean.getEvent(), cancelEventBean.getResponsible(), cancelEventBean.getJustification());
} catch (DomainExceptionWithLabelFormatter ex) {
addActionMessage(request, ex.getKey(), solveLabelFormatterArgs(request, ex.getLabelFormatterArgs()));
request.setAttribute("cancelEventBean", cancelEventBean);
return mapping.findForward("editCancelEventJustification");
} catch (DomainException ex) {
addActionMessage(request, ex.getKey(), ex.getArgs());
request.setAttribute("cancelEventBean", cancelEventBean);
return mapping.findForward("editCancelEventJustification");
}
request.setAttribute("person", cancelEventBean.getEvent().getPerson());
return mapping.findForward("showEvents");
}