回 帖 发 新 帖 刷新版面

主题:为什么struts得action会执行2次呢

<%@ page language="java" pageEncoding="gb2312"%>

<html> 
    <head>
        <title>76业务量查询</title>
        <link rel="stylesheet" href="images/css.css" type="text/css" media="screen">
    </head>
    <body>
<html:form action="/search76">
            <table width="773"  border="0" align="center" cellpadding="0" cellspacing="0" class="zhengw">
            <tr class="zhengwen">
              <td width="26%"><div align="center" class="zhengw">
                <label></label>
                <div align="left">地区</div>
              </div></td>
              <td width="8%">&nbsp;</td>
              <td width="10%"><div align="center">开始时间</div></td>
              <td width="13%"><div align="center">
                <input class="input"  type="text" name="regdate" size="12">
              </div></td>
              <td width="24%"><p>
                <label>
                 <select name="smini" size="1" class="bdtj3" id="smini">
                    <option value="9" selected>9</option>
                    <%
                    int i=0;
            for(i=0;i<=23;i++){
                out.write("<option value=\"" + i + "\">" + i + "</option>");
                }
                %>
                  </select>
                 点                 </label>
              </p></td>
              <td width="19%">&nbsp;</td>
            </tr>
            <tr class="zhengwen">
              <td><div align="center">
                <label></label>
                <select name="sheng" size="1" class="bdtj3" id="sheng">
                  <option value="AllCountry"  selected>全国</option>
                  <option value="安徽">安徽</option>
                  <option value="重庆">重庆</option>
                  <option value="湖北">湖北</option>
                  <option value="吉林">吉林</option>
                  <option value="内蒙古">内蒙古</option>
                  <option value="宁夏">宁夏</option>
                  <option value="山西">山西</option>
                  <option value="福建">福建</option>
                  <option value="浙江">浙江</option>
                  <option value="辽宁">辽宁</option>
                  <option value="河南">河南</option>
                  <option value="甘肃">甘肃</option>
                  <option value="新疆">新疆</option>
                  <option value="黑龙江">黑龙江</option>
                  <option value="青海">青海</option>
                  <option value="河北">河北</option>
                  <option value="四川">四川</option>
                  <option value="江西">江西</option>
                  <option value="天津">天津</option>
                  <option value="江苏">江苏</option>
                  <option value="西藏">西藏</option>
                  <option value="海南">海南</option>
                  <option value="贵州">贵州</option>
                  <option value="广东">广东</option>
                  <option value="湖南">湖南</option>
                  <option value="山东">山东</option>
                  <option value="上海">上海</option>
                  <option value="陕西">陕西</option>
                  <option value="云南">云南</option>
                  <option value="广西">广西</option>
                </select>
              </div></td>
              <td>&nbsp;</td>
              <td><div align="center">结束时间</div></td>
              <td><div align="center">
                <input class="input"  type="text" name="regdate2" size="12">
              </div></td>
              <td><label>
                  <select name="emini" size="1" class="bdtj3" id="emini">
                    <option value="9" selected>9</option>
                    <%
            for(i=0;i<=23;i++){
                out.write("<option value=\"" + i + "\">" + i + "</option>");
                }
                %>
                    </select>
                  点                </label></td>
              <td>&nbsp;</td>
            </tr>
            <tr class="zhengwen">
              <td><div align="right"></div></td>
              <td colspan="3"><div align="center"></div></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr class="zhengwen1">
              <td><div align="right"></div></td>
              <td colspan="3"><div align="center"></div></td>
              <td>&nbsp;</td>
              <td><input type="Submit" name="Submit" value="开始搜索" class="bdtj" align="middle"></td>
            </tr>
          </table>
        </html:form>        
    </body>
</html>

回复列表 (共3个回复)

沙发

帮忙看下阿

板凳

没有人知道吗????

3 楼

2次是什么意思?
没看明白

我来回复

您尚未登录,请登录后再回复。点此登录或注册