我在做一个163的回复功能,所有Cookie和Post的数据都和网页上发送的一样,就是发送不成功,获取影响的字符串:
//#DWR-REPLY
if (window.dwr) dwr.engine._remoteHandleBatchException({ name:'org.directwebremoting.extend.ServerException', message:'The specified call count is not a number' });
else if (window.parent.dwr) window.parent.dwr.engine._remoteHandleBatchException({ name:'org.directwebremoting.extend.ServerException', message:'The specified call count is not a number' });总是出现在面的错误。我在网上找了半天说什么把Content-Type的值改为 text/plain ,没用,还有说是因为callCount=1后面要加&符号,以区别这是一个变量=值的格式,我也在每个参数后面加了,还是不行,实在想不到有什么问题了
请求内容格式:
callCount=1&
scriptSessionId=${scriptSessionId}630&
c0-scriptName=BlogBean参数没写完,反正格式就是这样,不管我怎么改都是这个错误,最后我直接只要了callCount=1这个参数,结果还是一样的,我都不知道是不是格式原因造成的这个错误