导出问题
nininia
2008-07-04
<%@ page language="java" import="java.util.*"
contentType="text/html;charset=UTF-8"%> <%@ taglib uri="http://www.ecside.org" prefix="ec"%> <html> <head> <title>eXtremeTest</title> <link rel="stylesheet" type="text/css" href="ecside/css/ecside_style.css" /> <script type="text/javascript" src="ecside/js/prototype_mini.js"></script> <script type="text/javascript" src="ecside/js/ecside_msg_utf8_cn.js"></script> <script type="text/javascript" src="ecside/js/ecside.js"></script> </head> <% java.util.List presidents = new java.util.ArrayList(); for (int i = 1; i < 21; i++) { java.util.Map president = new java.util.HashMap(); president.put("name", "George Washington " + i); president.put("nickname", "Father of His Country " + i); president.put("term", "1789-1797 " + i); presidents.add(president); } request.setAttribute("pres", presidents); %> <body style="margin: 25px;"> <p style="font-family: Verdana; font-size: 14px;"> 恭喜!! 你已经配置 eXtremeTable 成功! </p> <ec:table items="pres" var="record" retrieveRowsCallback="process" action="/user.do" pageSizeList="2,5,10,50" rowsDisplayed="5" title="总统信息" editable="true" xlsFileName="文件1.xls" csvFileName="文件2.csv" pdfFileName="文件3.pdf" sortable="true" filterable="true" useAjax="false"> <ec:row> <ec:column width="50" property="_0" title="序号" value="${GLOBALROWCOUNT}" /> <ec:column width="200" property="name" title="姓名" /> <ec:column width="200" property="nickname" /> <ec:column width="100" property="term" /> <ec:column property="null" title="修改" width="40" sortable="false" viewsAllowed="xls,html"> <a href="user.do?method=edit&id=${pre.name}">修改</a> </ec:column> <ec:column property="null" title="删除" width="40" sortable="false" viewsAllowed="html"> <a href="user.do?method=del&id=${pre.name}">删除</a> </ec:column> </ec:row> </ec:table> </body> </html> 我直接访问jsp就能导出 一用action跳转到这个jsp的话 点导出 也弹出对话框,我点了以后出现 js错误。我查了一下form.submit();错误 |