dwr和struts2和spring整合

dwr.xml文件:
 <!DOCTYPE dwr PUBLIC
    "-//GetAhead Limited//DTD Direct Web Remoting3.0//EN"

    "http://getahead.org/dwr/dwr30.dtd">
 <dwr>
 <allow>


    <!-- spring整合dwr。修改兩處:creator改成spring。param名字改成beanName! -->

    <create creator="spring" javascript="messageDao">

      <param name="beanName" value="messageDao"/>

    </create>

     <!--<convertconverter="bean" match="com.bjsxt.dwr.User"/>

  --></allow>

</dwr>
1.      在struts.xml中增長:
<constant name="struts.action.excludePattern"value="/dwr/.*,/dwr/test/.*" />
相關文章
相關標籤/搜索