dispalytag表垂直对齐

时间:2014-07-19 10:59:21

标签: jsp struts

    <table width="100%" >

    <tr>

    <td>
        <%
            int rowCount1 = 0;
            %>
             <display:table id="quotationCreationDetss" name="quotationCreationDetss" sort="page"
            pagesize="10" export="false"
             class="listingBorder">
            <%
                String rowClass = "";
                    if (rowCount1 % 2 == 0) {
                        rowClass = "evenRow";
                    } else {
                        rowClass = "oddRow";
                    }
            %>

            <display:column  property="purch_req_no" title="Enq No" headerClass="headerRow" class='<%=rowClass%>'  />
            <display:column property="vendor_name" title="Vendor Name"  headerClass="headerRow"  class='<%=rowClass%>'> </display:column>
            <display:column property="vendor_sl_no" headerClass="hidden"  class="hidden" /> 
            <display:column property="total_amount"  title="Total" headerClass="headerRow"  class='<%=rowClass%>'></display:column>

            <%-- <display:column   headerClass="headerRow" title ="Details" class='<%=rowClass%>'>
            <a href="detailsvendor?detail_ven_sl_no=${quotationCreationDetss.vendor_sl_no}" >Details </a>&nbsp;&nbsp;
            </display:column> --%>

            <display:column   headerClass="headerRow" title ="Details" class='<%=rowClass%>'>
                <a href='#' class='click' onclick="detlvendor(${quotationCreationDetss.vendor_sl_no})">detials</a> <br/>
            </display:column>

            <%
                rowCount1++;
            %>
            <display:setProperty name="paging.banner.placement" value="bottom" />
        </display:table>
    </td>
</tr></table>

输出

Enq No  Vendor Name Total   
1181    ABC CORP    2520.0  
1181    DELL        5020.0   

我想要这样的输出

VendorName   ABC CROP   DELL
Toal         2520       5020  

帮助获得这样的输出。

0 个答案:

没有答案