Appfuse dwr实现

来源:互联网 发布:中国水果进出口数据 编辑:程序博客网 时间:2024/06/04 19:16


      修改web.xml中的参数,把*,/dwr/*去掉,可以到StaticFilter查看实现机制




      到dwr.xml中配置相关参数 参考:http://directwebremoting.org/dwr/server/dwrxml/index.html

其中getList,getHelloString为自己定义的函数

  

      可以通过下面地址对所写的函数进行测试,http://localhost:8009/logfee/dwr/index.html

参考:Ajax开发精要——概念、案例与框架 http://book.csdn.net/bookfiles/159/1001596838.shtml

 
      加入相关脚本连接,很重要,在测试页面有的,都需要加入



相关参考网站: http://directwebremoting.org/dwr/server/dwrxml/index.html

http://www.blogjava.net/heyday/archive/2008/05/13/200254.html

http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseAjaxWithDWR

http://appfuse.org/display/APF/Ajax

原创粉丝点击