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; }
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; }