页面的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();
其他 两个属性是否有 set /get
把值放入隐藏字段传回去吧
另外两个字段的属性是什么样的?
前台根本没传过去