`

Ajax------------- spring+dwr整合

 
阅读更多

两种方式

一、直接在spring配置文件applictionContext里配置

二、单独的dwr.xml文件配置

测试类:

第一种方式:

applicationContext.xml

dwr转发用 org.directwebremoting.spring.DwrSpringServlet

web.xml



第二种

applicationContext.xml(和一般的spring bean配置一样)

dwr.xml

web.xml

dwr转发用

org.directwebremoting.servlet.DwrServlet

调用


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics