请教,我怎么用form把ectable中的数据提交后台
邵剑波
2009-04-11
表单为:
<form name="costomForm" method="post"> <ec:table action="paymentInput.do?action=getCostomFee" items="costomFeeList" imagePath="images/table/compact/*.gif" retrieveRowsCallback="limit" title="" width="100%" rowsDisplayed="10" sortable="true" var="list" filterable="false" cellspacing="1" > <ec:row> <ec:column title="物业公司" property="companyName" filterable="false" style="width: 10%;text-align:left;"> ${list.companyName } </ec:column> <ec:column title="管理处" property="officeName" filterable="false" style="width: 10%;text-align:left;"> ${list.officeName } </ec:column> <ec:column title="小区" property="zoneName" filterable="false" style="width: 10%;"> ${list.zoneName } </ec:column> <ec:column title="楼宇" property="floorName" format="yyyy-MM-dd" cell="date" filterable="false" style="width: 10%;"> ${list.floorName } </ec:column> <ec:column title="房间" property="roomName" filterable="false" style="width: 10%;"> ${list.roomName } </ec:column> <ec:column title="费用类型" property="feeTypeName" filterable="false" style="width: 10%;" > ${list.feeTypeName } </ec:column> <ec:column title="起始月份" property="startTime" filterable="false" style="width: 10%;" > ${list.startTime } </ec:column> <ec:column title="结束月份" property="endTime" filterable="false" style="width: 10%;"> ${list.endTime } </ec:column> <ec:column title="应付款" property="currentFeeNum" filterable="false" style="width: 6%;"> ${list.currentFeeNum } </ec:column> <ec:column title="实付金额" property="payingFeeNum" filterable="false" style="width: 6%;"> ${list.payingFeeNum } </ec:column> <ec:column title="操作员" property="userName" filterable="false" style="width: 8%;"> ${list.userName} </ec:column> </ec:row> </ec:table> <input type="button" value="提交" onclick="inputCostomFee()"> </form> js文件为: function inputCostomFee(){ document.costomForm.action="paymentInput.do?action=inputCostomFee"; document.costomForm.submit(); 可是 提示 对象不支持此属性或方法, document.costomForm.action 这块有问题,可我不知道什么原因 |