JavaScud | Forum | JIRA | Blog |
  Dashboard > DWR中文文档 > ... > WEB-INF Configuration > Test Mode
  DWR中文文档 Log In View a printable version of the current page.  
  Test Mode
Added by 黑灵, last edited by 黑灵 on Oct 20, 2006  (view change)
Labels: 
(None)

使用debug/test模式

你可以通过下面的参数让DWR进入debug/test模式:

<init-param> 
<param-name>debug</param-name> 
<param-value>true</param-value> 
</init-param>

在debug模式里,DWR会为每一个远程调用类生成一个测试页面。这对于检查DWR是否工作和工作的怎么样是很有用的。这个模式还可以警告你一些存在的问题:javascript保留字问题,或者函数重载问题。

尽管如此,这个模式不应该使用在实际部署环境里面,因为它可以为攻击者提供你的服务的大量信息。如果你的网站设计的好的话,这些信息不会帮助攻击者窥视你的网站内容,但是还是不要给任何人一个找到你错误的机会好。

DWR就是照上面的样子做的,没有任何保证,所以你的网站的安全是你的责任。请小心。

Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators