在jsp页面上添加了用户输入的查询框,根据输入框的时间,本页面的表格做替换<div>
    <h3>订单管理</h3>
    <div>
   
 <div id="so">
 
<center> 

<table class="gridtable">
<tr>
<th>選擇</th>
<th>客戶編號</th>
<th>訂&nbsp單&nbsp日&nbsp期</th>
<th>訂單類型</th>
  <!-- <th>客戶PO號</th>
<th>付款方式</th>
<th>完成狀態</th>
<th>審核者&nbsp</th>
<th>幣&nbsp&nbsp種</th>
<th>匯&nbsp&nbsp率</th>
<th>&nbsp備&nbsp&nbsp注&nbsp</th>-->
<!-- -------------------------So——Item -->
<th>訂單編號</th>
<th>產品編號</th>
<th>訂單序號</th>
<th>VSC品號</th>
<th>單&nbsp價&nbsp</th>
<th>訂單數量</th>
<th>需&nbsp求&nbsp日&nbsp期</th>
<th>出貨數量</th>
<th>退貨數量</th>
<th>客戶品號</th>
<th>單位</th>
<th>客戶編號</th>
<th>原幣單價</th>
    <th>出&nbsp貨&nbsp日&nbsp期</th>
<th>&nbsp長&nbsp</th>
<th>&nbsp寬&nbsp</th>
<th>&nbsp高&nbsp</th>

</tr>

<s:iterator value="#request.soItemlist" id="st">
<tr class="solist">
<td align="center"><input type="checkbox"   class="ck"/><s:property value="#st.YesOrNo"/></td>
<td align="center"><s:property value="#st.mcustno"/></td>
<td align="center"><s:property value="#st.orderDate"/></td>
<td align="center"><s:property value="#st.type"/></td>

   <!-- <td align="center"><s:property value="#st.orderno"/></td>
<td align="center"><s:property value="#st.custpono"/></td>
<td align="center"><s:property value="#st.payment"/></td>
<td align="center"><s:property value="#st.lookflag"/></td>
<td align="center"><s:property value="#st.audit"/></td>
<td align="center"><s:property value="#st.currency"/></td>
<td align="center"><s:property value="#st.exchange"/></td>
<td align="center"><s:property value="#st.re"/></td>   -->

<td align="center"><s:property value="#st.orderno"/></td>
<td align="center"><s:property value="#st.partno"/></td>
<td align="center"><s:property value="#st.itemno"/></td>
<td align="center"><s:property value="#st.vscNo"/></td>
<td align="center"><s:property value="#st.price"/></td>
<td align="center"><s:property value="#st.orderQty"/></td>
<td align="center"><s:property value="#st.sdate"/></td>
<td align="center" class="onclick"><s:property value="#st.shipQty"/></td>
<td align="center"><s:property value="#st.delQty"/></td>
<td align="center"><s:property value="#st.custpn"/></td>
<td align="center"><s:property value="#st.unit"/></td>
<td align="center"><s:property value="#st.custno"/></td>
<td align="center"><s:property value="#st.basprice"/></td>
<td align="center"><s:property value="#st.shipdate"/></td>
<td align="center"><s:property value="#st.udf54"/></td>
<td align="center"><s:property value="#st.udf55"/></td>
<td align="center"><s:property value="#st.udf56"/></td>
</tr>
</s:iterator>
这是前端后台Action:
public String getSo_Item(){
Map<String,String> condition = new HashMap<String,String>();
String orderdate=getRequest().getParameter("orderdate");

condition.put("CONDITION", "Order_date >="+"'"+orderdate+"'");
List<V_SoItem> soItemlist=GetSoItemService().selectSoItem(condition);
ServletActionContext.getRequest().setAttribute("soItemlist",soItemlist);