页面的js代码传递参数,struts2 action里面的只获取到fCallerNum的值,另外两个为null,哪位高手看下,最可能是哪里出了问题?
js代码
var urls = getActionMappingURL("/getAgentServ");
var pars = "action=getAgentServ&ajax=shtml" +
"&tagentTrack.agentId=" + encodeURIComponent(fagentId) +
"&tagentTrack.fCallerNum=" + encodeURIComponent(fcallerNum) +
"&tagentTrack.calleeNum=" + encodeURIComponent(fcalleeNum);
var myAjax = new Ajax.Updater("agentTrackListDiv", urls, {method: 'post', parameters: pars,evalScripts: true});
action代码
String fagentId = this.tagentTrack.getAgentId();
String fcallerNum = this.tagentTrack.getFCallerNum();
String fcalleeNum = this.tagentTrack.getCalleeNum();