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

推荐订阅源

T
Threatpost
V
Vulnerabilities – Threatpost
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
G
GRAHAM CLULEY
S
Securelist
P
Palo Alto Networks Blog
MongoDB | Blog
MongoDB | Blog
A
Arctic Wolf
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
WordPress大学
WordPress大学
Project Zero
Project Zero
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
C
Cyber Attacks, Cyber Crime and Cyber Security
F
Fortinet All Blogs
博客园 - 叶小钗
B
Blog RSS Feed
C
Cisco Blogs
Google DeepMind News
Google DeepMind News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
K
Kaspersky official blog
D
Docker
Latest news
Latest news
Cisco Talos Blog
Cisco Talos Blog
T
Tor Project blog
Cyberwarzone
Cyberwarzone
Security Latest
Security Latest
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
C
Check Point Blog
J
Java Code Geeks
Simon Willison's Weblog
Simon Willison's Weblog
T
Tenable Blog
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog
H
Help Net Security
L
LINUX DO - 热门话题
T
The Exploit Database - CXSecurity.com
Jina AI
Jina AI
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
NISL@THU
NISL@THU
美团技术团队
腾讯CDC

博客园 - 书生无用

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