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

推荐订阅源

T
Threatpost
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
P
Proofpoint News Feed
D
DataBreaches.Net
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
宝玉的分享
宝玉的分享
Recorded Future
Recorded Future
GbyAI
GbyAI
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
C
Cisco Blogs
L
LangChain Blog
博客园 - 聂微东
Microsoft Security Blog
Microsoft Security Blog
Recent Announcements
Recent Announcements
量子位
AWS News Blog
AWS News Blog
爱范儿
爱范儿
Know Your Adversary
Know Your Adversary
F
Full Disclosure
MyScale Blog
MyScale Blog
Stack Overflow Blog
Stack Overflow Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Microsoft Azure Blog
Microsoft Azure Blog
S
Schneier on Security
Spread Privacy
Spread Privacy
P
Privacy International News Feed
人人都是产品经理
人人都是产品经理
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
美团技术团队
Latest news
Latest news
D
Docker
Scott Helme
Scott Helme
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
The Register - Security
The Register - Security
T
Tailwind CSS Blog
SecWiki News
SecWiki News
C
CERT Recently Published Vulnerability Notes
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Security Affairs
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
Martin Fowler
Martin Fowler
I
InfoQ
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Tenable Blog

博客园 - 书生无用

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