重要Memo:
[size=large]可以通过访问 [b]项目名/dwr[/b](如http://127.0.0.1:8090/MyApp/dwr/) 查看dwr管理页面,里面会有已配置的dwr调用方法列表;可以在这里对方法进行测试,输入对应参数看返回结果。[/size]
页面js引入:
Required:
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script>
Optional utility script:
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script>
常用dwr util函数([b][color=red]写成dwr.util和写成DWRUtil是一模一样地![/color][/b]):
[size=x-large][b][url]http://directwebremoting.org/dwr/browser/util/index.html[/url][/b][/size]
dwr.util.removeAllOptions("p");
dwr.util.addOptions("p",data,"id","name");
DWRUtil.setValue('result', msg);
DWR学习小结
[b][url]http://blog.csdn.net/penghuasheng/archive/2007/08/14/1742891.aspx[/url][/b]
dwr应用时请注意(初学者)
关于A request has been denied as a potential CSRF attack
[url]http://yahaitt.iteye.com/blog/147795[/url]
[size=large]可以通过访问 [b]项目名/dwr[/b](如http://127.0.0.1:8090/MyApp/dwr/) 查看dwr管理页面,里面会有已配置的dwr调用方法列表;可以在这里对方法进行测试,输入对应参数看返回结果。[/size]
页面js引入:
Required:
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script>
Optional utility script:
<script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script>
常用dwr util函数([b][color=red]写成dwr.util和写成DWRUtil是一模一样地![/color][/b]):
[size=x-large][b][url]http://directwebremoting.org/dwr/browser/util/index.html[/url][/b][/size]
dwr.util.removeAllOptions("p");
dwr.util.addOptions("p",data,"id","name");
DWRUtil.setValue('result', msg);
DWR学习小结
[b][url]http://blog.csdn.net/penghuasheng/archive/2007/08/14/1742891.aspx[/url][/b]
dwr应用时请注意(初学者)
关于A request has been denied as a potential CSRF attack
[url]http://yahaitt.iteye.com/blog/147795[/url]