一个JSP页面实现增删改查页面排版谁给我个例子。谢谢。

解决方案 »

  1.   

    <table width="100%" border="0" cellpadding="1" cellspacing="1" class="list_data_table" style="border-left-width: 0px">
    <tr> 
        <td class="list_data_table_tr" nowrap="nowrap">Device Type</td>
        <td class="list_data_table_tr" nowrap="nowrap">Result Table</td>
        <td class="list_data_table_tr" nowrap="nowrap">Whether the activation</td>
        <td class="list_data_table_tr" nowrap="nowrap">Whether the monitoring</td>
        <td class="list_data_table_tr" nowrap="nowrap">operation</td>
    </tr> 
    <logic:notEmpty name="typeResultList">
    <logic:iterate id="typeResultList" name="typeResultList">
    <TR bgcolor="white" align="left" class="list_data_table_tr" style="height:25px">
    <TD align="left" width="10%">
    <div title="<bean:write name="typeResultList" property="type"/>" style="float:left; padding-top: 2px; height: 21px; width: 200px; white-space:nowrap;word-break:keep-all;overflow:hidden;text-overflow:ellipsis;">
            <bean:write name="typeResultList" property="type"/>
          </div>
    </td>
    <TD align="left" width="10%">
    <div title="<bean:write name="typeResultList" property="result_table"/>" style="float:left; padding-top: 2px; height: 21px; width: 200px; white-space:nowrap;word-break:keep-all;overflow:hidden;text-overflow:ellipsis;">
            <bean:write name="typeResultList" property="result_table"/>
          </div>
    </td>
    <TD align="left" width="10%">
    <div title="<bean:write name="typeResultList" property="isActive"/>" style="float:left; padding-top: 2px; height: 21px; width: 200px; white-space:nowrap;word-break:keep-all;overflow:hidden;text-overflow:ellipsis;">
            <logic:equal name="typeResultList" property="isActive" value="0">未激活</logic:equal>
            <logic:equal name="typeResultList" property="isActive" value="1">已激活</logic:equal>
          </div>
    </td>
    <TD align="left" width="10%">
    <div title="<bean:write name="typeResultList" property="monitored"/>" style="float:left; padding-top: 2px; height: 21px; width: 200px; white-space:nowrap;word-break:keep-all;overflow:hidden;text-overflow:ellipsis;">
            <logic:equal name="typeResultList" property="monitored" value="0">否</logic:equal>
            <logic:equal name="typeResultList" property="monitored" value="1">是</logic:equal>
          </div>
    </td>
     <td align="left" width="10%">
         <img src="<app:ResPath/>/images/edit.gif" style="cursor:pointer" 
              onclick="toedit('${typeResultList.config_type_result_id}')" 
              alt="edit"/>&nbsp;&nbsp;  
    </td>
    </tr>
    </logic:iterate>
    </logic:notEmpty>
    <script type="text/javascript">
    function tosearch(){
     document.getElementById("search_status").value = 1;
         ajaxAnywhere.submitAJAX('searchTypeResultList','refreshItemList');
    }
    function toedit(val){
    document.getElementById("deployVO.config_type_result_id").value=val;
    document.ownerForm.method.value="searchOneTypeResult";
    document.ownerForm.submit();
    }
    </script>
    分分分  我是偷偷给你的
      

  2.   

    我晕,您确定不是倒份?
    看看这个地址:
    http://topic.csdn.net/u/20110518/08/97c4791e-1425-40c6-a891-10dcc956eb9a.html
    同样的内容,加我相当怀疑!