コード例 #1
0
 public ActionForward execute(
     ActionMapping mapping,
     ActionForm form,
     HttpServletRequest request,
     HttpServletResponse response) {
   KSDaoSessionFactory.createSession();
   ActionForward forward = dotrans(mapping, form, request, response);
   try {
     KSDaoSessionFactory.commit();
   } catch (SQLException e) {
     e.printStackTrace();
   }
   return forward;
 }
コード例 #2
0
  public ActionForward execute(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response) {

    KSDaoSessionFactory.createSession();
    ActionForward forward = doLogin(mapping, request);
    try {
      KSDaoSessionFactory.commit();
    } catch (SQLException e) {
      logger.error("提交事务失败");
      e.printStackTrace();
    }
    return forward;
  }