@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"); }
public Object executeInTransaction(ActionForm form) throws SQLException, ValidationException { DeleteObservationForm deleteForm = (DeleteObservationForm) form; int id = Integer.valueOf(deleteForm.getId()); ObservationDAO.logicallyDeleteObservationById(id); return null; }