2010-11-22 34 views
0

添加新列時,如何在我的jsp頁面中插入標籤標籤?這裏是下面的示例代碼:如何在JSP頁面中使用複選框動態插入標籤?

<td class="col-1"> 
    <dsp:getvalueof var="pv_orderview" param="element" idtype="java.lang.Object" /> 
    <dsp:input type="checkbox" id="${pv_count}" name="ordersCsv" bean="ActivityHistoryFormHandler.csvValues" value="${pv_orderview.orderDate},${pv_orderview.orderId},${pv_orderview.orderTotal},${pv_orderview.status}" /> 
</td> 
+0

是什麼_「新當列添加」 _是什麼意思?他們是添加客戶端(在瀏覽器中,使用JavaScript)還是服務器端? – 2010-11-22 15:29:41

+0

正如你所看到的複選框被動態添加到服務器端。所以我想標籤是動態添加到服務器端的。 – Amen 2010-11-22 15:37:23

回答

2

如果我理解正確的問題是:

<td class="col-1"> 
    <dsp:getvalueof var="pv_orderview" param="element" idtype="java.lang.Object" /> 
    <label for="${pv_count}">Label content here</label> 
    <dsp:input type="checkbox" id="${pv_count}" name="ordersCsv" bean="ActivityHistoryFormHandler.csvValues" value="${pv_orderview.orderDate},${pv_orderview.orderId},${pv_orderview.orderTotal},${pv_orderview.status}" /> 
</td> 
相關問題