我正在使用顯示標記。在我的顯示器中:列我需要我的記錄上的href鏈接,並且如果單擊計數鏈接它將轉到我的struts操作頁面,同時我需要'哪個實例類型'和「評級要素id'.So請給我的建議,傳遞值作爲查詢string..Currently現在用支柱版本1.2.9 我的示例代碼,如何使用顯示標籤傳遞參數?
<%@ include文件=「/ JSP /include/displaytag.jsp「%>
<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}" sortable="false" >
<a href="weeklyDlvyInstancesDashboardReportPost.do?method=WeeklyDlvyInstExcelReport&instanceType=${asnAccuracyListUID.instanceType}&ratingElementId=${asnAccuracyListUID.ratingElementId}">${asnAccuracyListUID.firstWeekOfCount}</a>
</display:column>
<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"/>
您正在使用Struts2的...嘗試使用標籤代替JSTL標籤,並用和更簡單的代碼... –
@swift am使用struts 1.2.9 –
好的...順便說一下,你的URL看起來不正確,你使用了兩次'?'標記爲參數... –