0

I'm using display tag. but i want to pass more than one parameter in the runtime. How can i pass the more than one parameter in the display:column using the 'paramProperty' and 'paramid'

My code is ,

<display:table name="${weeklyDlvyInstancesDashboardReportForm.asnAccuracyListQO}" uid="asnAccuracyListUID" sort="list" defaultsort="1" 
                                        requestURI="/weeklyDlvyInstancesDashboardReportPre.do?method=httpGet" excludedParams="method"
                                        decorator="com.ford.mpl.superg.decorator.WeeklyDeliveryInstancesTypeTableDecorator" keepStatus="true">
    <%@include file="/jsp/include/displaytag.jsp"%>
    <c:set value="${asnAccuracyListUID.firstWeekOfCountLabel}" var="asnAccuracyFirstWeekOfCount"/>
    <c:set value="${asnAccuracyListUID.secondWeekOfCountLabel}" var="asnAccuracySecondWeekOfCount"/>
    <c:set value="${asnAccuracyListUID.thirdWeekOfCountLabel}" var="asnAccuracyThirdWeekOfCount"/>
    <c:set value="${asnAccuracyListUID.fourthWeekOfCountLabel}" var="asnAccuracyFourthWeekOfCount"/>
    <c:set value="${asnAccuracyListUID.fifthWeekOfCountLabel}" var="asnAccuracyFifthWeekOfCount"/>
    <c:set value="${asnAccuracyListUID.sixthWeekOfCountLabel}" var="asnAccuracySixthWeekOfCount"/>

    <c:if test="${(asnAccuracyListUID.instanceType != null && asnAccuracyListUID.instanceType != 'Sum')}">
        <display:column property="instanceTypeDescription" title="Instance Type" sortable="false"/>
    </c:if>
    <c:if test="${(asnAccuracyListUID.instanceType != null && asnAccuracyListUID.instanceType == 'Sum')}">
        <display:column property="instanceType" title="Instance Type" sortable="false" style="font-weight:bold;text-align:center"/>
    </c:if>
    <display:column property="firstWeekOfCount" title="${asnAccuracyFirstWeekOfCount}" href="${pageContext.request.contextPath }/weeklyDlvyInstancesDashboardReportPost.do?method=WeeklyDlvyInstExcelReport" paramProperty="instanceType,ratingElementId" paramId="instanceTypeForJSP,ratingElementIdForJSP" sortable="false" />
    <display:column property="secondWeekOfCount" title="${asnAccuracySecondWeekOfCount}" sortable="false"  />
    <display:column property="thirdWeekOfCount" title="${asnAccuracyThirdWeekOfCount}" sortable="false"  />
    <display:column property="fourthWeekOfCount" title="${asnAccuracyFourthWeekOfCount}" sortable="false" />
    <display:column property="fifthWeekOfCount" title="${asnAccuracyFifthWeekOfCount}" sortable="false" />
    <display:column property="sixthWeekOfCount" title="${asnAccuracySixthWeekOfCount}" sortable="false"/>
</display:table>
4

3 回答 3

2

不要使用它,因为它只将第一行作为参数

 <display:table  cellpadding="2" name="dl" id="data" pagesize="500" requestURI="dataDisplayFormOne.htm" class="main_grid_table">
    <display:column property="facid" title="facid"  href="printUserForm20.htm?factid=${data.facid}&Licensenumber=${data.LICENSE_NO_FORM20}"  class="main_grid_column"/>
 </display:table>
于 2013-01-15T09:21:08.207 回答
1
<display:column property="firstWeekOfCount" title="${asnAccuracyFirstWeekOfCount}" href="${pageContext.request.contextPath }/weeklyDlvyInstancesDashboardReportPost.do?method=WeeklyDlvyInstExcelReport&ratingElementIdFromJSP=${asnAccuracyListUID.ratingElementId}" paramProperty="instanceType" paramId="instanceTypeFromJSP" sortable="false"/>
于 2012-10-18T14:37:15.510 回答
0

您可以简单地自己生成链接:

<display:column>
    <c:url value="..." var="theUrl">
        <c:param name="..." value="..."/>
        <c:param name="..." value="..."/>
    </c:url>
    <a href="<c:out value="${theUrl"}/>">...</a>
</display:column>
于 2012-10-16T15:21:33.807 回答