<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://getahead.org/dwr/dwr20.dtd"> <dwr> <allow> <create creator="spring" javascript="jsObject"> ...
<!-- TransactionManager事务管理器--> <bean id="transactionManagerBean" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory"> <ref local="sessionFactory" /> </property> </bean> <bean name="tran ...
今天在页面中捕获回车事件,发现提交表单时,会重复提交,最后在方法后面加一个return false,问题才得以解决。 document.onkeydown=function() {//捕捉回车 if (event.keyCode==13) { checkFormValidate(); return false; } }  
在使用Struts2+spring+hibernate3时,发现在web.xml配置的OpenSessionInViewFilter失效,使用load方法加载数据时,仍然会报“could not initialize proxy - the owning Session was closed“异常,后来在web.xml里面,把OpenSessionInViewFilter放在struts2的配置前,问题得到解决。配置如下: <!-- OpenSessionInViewFilter--> <filter> <filter-name& ...
yaoyq
搜索本博客
最近加入圈子
最新评论