function click_ok()
{
var a=0;
for(i=2;i<document.all("tbl_select").rows.length;i++){
if(document.all("tbl_select").rows(i).cells(0).all("DelID").checked)
a++;
}
var goodsIds=new Array(a);
var goodsNos=new Array(a);
for(i=1;i<document.all("tbl_select").rows.length;i++){
if(document.all("tbl_select").rows(i).cells(0).all("DelID").checked){
goodsIds[i-1]="";
goodsNos[i-1]="";
goodsIds[i-1]=String(document.all("tbl_select").rows(i).cells(1).all("goodsId").value);
goodsNos[i-1]=String(document.all("tbl_select").rows(i).cells(3).all("goodsNo").value);
}
}
window.opener.showselectgoodsList(goodsIds,goodsNos);
}
.......................................................................
......................................................................
function showselectgoodsList(td, txtbox) {
buffobj.remoteCall("OrderUtilFacade.getGoodsbyIds", [td], function (reply) {
var goodslist = reply.getResult();
});
}
问题:showselectgoodsList可以获得到td数组,但是进不去后台.
报了如下错误:请帮忙看看..谢谢..
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
net.buffalo.service.ServiceInvocationException: An exception occured when invoke a service
net.buffalo.service.BuffaloWorker.processRequest(Unknown Source)
net.buffalo.web.servlet.ApplicationServlet.doRequest(Unknown Source)
net.buffalo.web.servlet.ApplicationServlet.doPost(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
{
var a=0;
for(i=2;i<document.all("tbl_select").rows.length;i++){
if(document.all("tbl_select").rows(i).cells(0).all("DelID").checked)
a++;
}
var goodsIds=new Array(a);
var goodsNos=new Array(a);
for(i=1;i<document.all("tbl_select").rows.length;i++){
if(document.all("tbl_select").rows(i).cells(0).all("DelID").checked){
goodsIds[i-1]="";
goodsNos[i-1]="";
goodsIds[i-1]=String(document.all("tbl_select").rows(i).cells(1).all("goodsId").value);
goodsNos[i-1]=String(document.all("tbl_select").rows(i).cells(3).all("goodsNo").value);
}
}
window.opener.showselectgoodsList(goodsIds,goodsNos);
}
.......................................................................
......................................................................
function showselectgoodsList(td, txtbox) {
buffobj.remoteCall("OrderUtilFacade.getGoodsbyIds", [td], function (reply) {
var goodslist = reply.getResult();
});
}
问题:showselectgoodsList可以获得到td数组,但是进不去后台.
报了如下错误:请帮忙看看..谢谢..
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
net.buffalo.service.ServiceInvocationException: An exception occured when invoke a service
net.buffalo.service.BuffaloWorker.processRequest(Unknown Source)
net.buffalo.web.servlet.ApplicationServlet.doRequest(Unknown Source)
net.buffalo.web.servlet.ApplicationServlet.doPost(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)