Hi, I have SqlMapConfig.xml:
<?xml version='1.0' encoding='windows-1251' ?> <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd"> <sqlMapConfig> <settings cacheModelsEnabled="true" enhancementEnabled="true" lazyLoadingEnabled="true" maxRequests="32" maxSessions="8" maxTransactions="2" useStatementNamespaces="false" /> <transactionManager type="JDBC"> <dataSource type="JNDI"> <property name="DataSource" value="jdbc/himDS"/> </dataSource> </transactionManager> <sqlMap resource="nkmk/ibatis/sqlmap/maps/test.xml"/> <sqlMap resource="nkmk/ibatis/sqlmap/maps/Element.xml"/> <sqlMap resource="nkmk/ibatis/sqlmap/maps/Gost.xml"/> </sqlMapConfig> insert: <insert id="insertGost" parameterClass="Gost"> insert into sp_gost (name_gost) values (#gostName#) </insert> and sprGosts.jsp, that used to insert new Gost: String gostName = WebUtils.getStringParameter(request, "gost_name", ""); GostDAO gostDAO = new GostDAO(); Gost gost = new Gost(); gost.setGostName(gostName); int a = gostDAO.insertGost(gost); response.sendRedirect("sprGosts.jsp"); After 2 inserts browser try to open page (redirect after insert), but never open it. Early I have such problem because of wrong values of maxRequests, maxSessions, maxTransactions parameters. But now I think they are right. There is my mistake? -- Thanks. mailto:[EMAIL PROTECTED]
