コード例 #1
0
 @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");
 }
コード例 #2
0
  @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");
  }
コード例 #3
0
 @Override
 protected ActionResponse basicExecute(HttpServletRequest req)
     throws ValidationException, SQLException {
   TransactionProvider.executeInTransaction(this);
   return ActionResponse.newOKResponse();
 }