如何使用display:table标签创建多个表?

时间:2014-01-08 11:42:22

标签: java jsp displaytag

我创建了一张显示医疗索赔的表格如下:

<display:table id="claimItem" class="table table-bordered table-striped"
           name="claimItems" pagesize="10"
           requestURI="/individual/health/spg-items.do?section=GENMD" export="false" sort="list"
           defaultorder="ascending" defaultsort="1"
           excludedParams="paging">

<display:column title="Service Date" sortable="true">
    ${claimItem.date}
</display:column>
<display:column title="Patient" sortable="true">
    ${claimItem.patient}
</display:column>
<display:column title="Healthcare Professional" sortable="true">
    ${claimItem.provider}
</display:column>
</display:table>

但是,我需要为每个医学部分创建一个单独的表,而不仅仅是&#34; GENMD&#34;,我想用循环这样做,将该部分作为变量传入,它改变了表的id。但由于表的id用作表示当前项的变量,因此会导致一些问题。如果我将变量插入表名,id和requestURI,我不知道如何引用当前的声明项:

<display:table id="${section}item" class="table table-bordered table-striped"
       name="${section}items" pagesize="10"
       requestURI="/individual/health/spg-items.do?section=${section}" export="false" sort="list"
       defaultorder="ascending" defaultsort="1"
       excludedParams="paging">

<display:column title="Service Date" sortable="true">
    ${sectionitem.date} <!-- How do I access this claim item? -->
</display:column>
<display:column title="Patient" sortable="true">
    ${sectionitem.patient} <!-- How do I access this claim item? -->
</display:column>
<display:column title="Healthcare Professional" sortable="true">
    ${sectionitem.provider} <!-- How do I access this claim item? -->
</display:column>
</display:table>

有什么想法吗?提前谢谢。

0 个答案:

没有答案