今天按照官网的教程学习dwr的部署,当在jsp文件中调试的时候却老是报Uncaught ReferenceError 404,仔细检查了各个配置细节都没有发现问题,最后参考http://blog.csdn.net/u010395804/article/details/35289295才发现原来在加入script的时候一定要把<script src='<%=request.getContextPath()%>/dwr/engine.js'></script>写在最上面,这个老坑了。。。。
官方教程却是这样描述的:
<script src='/[YOUR-WEBAPP-CONTEXT]/dwr/interface/[YOUR-SCRIPT].js'></script> <script src='/[YOUR-WEBAPP-CONTEXT]/dwr/engine.js'></script>
![大哭](http://static.blog.csdn.net/xheditor/xheditor_emot/default/wail.gif)