原因是,没传参数
function add(num){
}
javascript:add();
data is null错误 原因是 dwr.xml没有配置convert(返回值的convert)
A server error has occurred
解决办法:log4j关于dwr的配置 .我也不知道该是哪个全设置成Debug.然后看后台报错信息。我的是找不到类。
log4j.logger.org.directwebremoting=DEBUG
# Set this to DEBUG to see what's happening on startup
log4j.logger.org.directwebremoting.log.startup=DEBUG
# Set this to DEBUG to see the created scripts
log4j.logger.org.directwebremoting.log.scripts=DEBUG
# Set these to DEBUG to see session lifecycle information
log4j.logger.org.directwebremoting.log.session=DEBUG
log4j.logger.org.testdwr=DEBUG
log4j.logger.org.springframework=DEBUG