惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LINUX DO - 热门话题
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
Microsoft Security Blog
Microsoft Security Blog
月光博客
月光博客
Jina AI
Jina AI
博客园_首页
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
G
Google Developers Blog
D
Docker
罗磊的独立博客
美团技术团队
爱范儿
爱范儿
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
J
Java Code Geeks
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
SecWiki News
SecWiki News
T
Troy Hunt's Blog
H
Heimdal Security Blog
The Cloudflare Blog
Webroot Blog
Webroot Blog
aimingoo的专栏
aimingoo的专栏
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Full Disclosure
AI
AI
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Last Week in AI
Last Week in AI
T
The Exploit Database - CXSecurity.com
V
V2EX
Spread Privacy
Spread Privacy
M
MIT News - Artificial intelligence
量子位
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
NISL@THU
NISL@THU
Hacker News: Ask HN
Hacker News: Ask HN
The GitHub Blog
The GitHub Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
News and Events Feed by Topic
Attack and Defense Labs
Attack and Defense Labs

博客园 - 书生无用

Improve the speed to display a transparent background winform Replace the with CR in Microsoft Excel using maven and eclipse created a mutiple module project for eclipse 开源的codecoverage(测试代码覆盖率)检测工具 使用zoudry编辑blog的设置 wiki为什么会流行 实现 DWR Sample 的几个要注意的问题(2) 几个有意思的在线服务网站 静悄悄的变化 APPFUSE wiki中文文档问题解决了 appfuse使用Taperstry框架(一)——创建Tapestry框架页面 又是一个艳阳天 有几个Gmail、Wallop邀请 Appfuse开发实践(五)—— 增加校验和列表页面 Appfuse开发实践(四)——创建Webwork 框架的 Actions和JSP Appfuse开发实践(三) —— 创建Manager类 Appfuse开发实践(二)——创建DAO对象 Appfuse里面带的Ant任务列表 Appfuse实践(一)——配置安装
DWR Sample的两个问题
书生无用 · 2005-12-09 · via 博客园 - 书生无用

这两天断断续续一直在折腾DWR,不知道怎么搞得前两个例子一直跑不起来,昨天半夜终于发现了问题所在,今天晚上回来试了一下总算解决了。都是很小的问题,小问题会有大影响,Sample文档描述也不是太清晰,记录一下,免得忘了。

Dyanmic Text

直接复制 http://getahead.ltd.uk/dwr/examples/text 获取的源代码(注意要修改 Demo.js等几个js文件的URL地址),运行有问题,Excuete按钮正常执行,Inclue Page 按钮不起作用。昨晚主义检查发现 Dynamic Text的文档和查看源代码得到的代码有出入。

文档显示

The code is all very similar to the above example except for slightly different Java code:

public String getInclude() throws ServletException, IOException{    return ExecutionContext.get().forwardToString("/forward.jsp");}
源文件中对应的javascript
function forward(){    Demo.getForward(loadforward);}
给出的函数名和实际使用的函数名不一致,修改成一样的,重新发布,一切正常了。

Dynamic Form

Dynamic Form运行时,点击write会出现一个错误信息提示。这个文档说明本身没有问题,漏了一点没有说明,为了sample程序正常运行,需要在dwr.xml增加下面一行:

<convert converter="bean" match="your.full.package.BeanName"/>
这个conver可以使得DWR调用带类参数Set方法时自动创建需要的对象。具体作用参考http://getahead.ltd.uk/dwr/server/dwrxml/converters/bean