@Override public ActionForward basicExecute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DeleteObservationForm deleteForm = (DeleteObservationForm) form; deleteForm.setId(request.getParameter("id")); TransactionProvider.executeInTransaction(this, form); return mapping.findForward("continue"); }
@Override public ActionForward basicExecute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { final SystemUserABMForm systemUserABMForm = (SystemUserABMForm) form; final int userId = Integer.parseInt(request.getParameter("id")); TransactionProvider.executeInTransaction( new TransactionalAction() { public void executeInTransaction() throws SQLException, ValidationException { systemUserABMForm.initWith(userId); } }); return mapping.findForward("continue"); }
@Override protected ActionResponse basicExecute(HttpServletRequest req) throws ValidationException, SQLException { TransactionProvider.executeInTransaction(this); return ActionResponse.newOKResponse(); }