日期:2014-05-17  浏览次数:20793 次

一个导出Excel的方法会重复执行两次,求解!
页面:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>fineplat</title>
<link href="<%=request.getContextPath() %>/web/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath() %>/web/css/reset.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath() %>/web/css/invalid.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/web/js/jquery/themes/gray/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/web/js/jquery/themes/icon.css">
<script type="text/javascript" src="<%=request.getContextPath() %>/web/js/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/web/js/jquery/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/web/js/public.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/web/js/button.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/web/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/JavaScript"  language="javascript">
function query()
{
document.form1.action="feelog_monthlyfeeSummary.action";
document.form1.submit();
}

function exportExcelFile()
{
document.form1.action="feelog_exportExcelFile.action";
document.form1.submit();
}
</script>

</head>
<body>

<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
<div id="main-content"> 
<div class="bread">当前位置: 短信管理 > 包月计费统计</div>
<div class="clear"></div> <!-- End .clear -->
 <div class="content-box"><!-- Start Content Box -->
<div class="content-box-content">
<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
<table>
                        <tfoot>
                         <tr>
                         <td style="border-bottom: 1px solid #ddd;">
                         <form name="form1" method="po