我有一个JSP,它有一个来自一个servlet的会话范围列表。现在我通过一个doget url调用另一个servlet并想要传递该列表。这可能吗?这是我的jsp代码:
<display:table name="sessionScope.ActivationDetailList"
id="ActivationDetailReport" defaultsort="1" defaultorder="ascending"
pagesize="<%= recordsPerPage %>" cellspacing="0" cellpadding="3"
requestURI="/activationDetail.do" export="true"
class="data_table width_full" style="margin-left:20px;">
<%-- <display:setProperty name="export.csv" value="true" />
<display:setProperty name="export.excel" value="true" />
<display:setProperty name="export.excel.filename" value="ActivationDetailReport.xls" />
<display:setProperty name="export.csv.filename" value="ActivationDetailReport.csv" />
<display:setProperty name="export.xml.filename" value="ActivationDetailReport.xml" /> --%>
--%><display:column property="creationDate" title="Request Start Date" />
<display:column property="plan" title="Plan" />
<display:column property="txnCount" title="Total" />
<display:column property="user" title="User ID" />
<display:column property="activationType" title="Activation Type" />
<display:column property="status" title="Transaction Status" />
<display:column property="product" title="Product" />
<display:setProperty name="paging.banner.placement" value="bottom"/>
<display:setProperty name="export.csv" value="true" />
<display:setProperty name="export.excel" value="true" />
<display:setProperty name="export.pdf.filename" value="ActivationDetailReport.xls" />
<display:setProperty name="export.csv.filename" value="ActivationDetailReport.csv" />
<display:setProperty name="export.excel.filename" value="ActivationDetailReport.xls" />
<display:setProperty name="export.xml.filename" value="ActivationDetailReport.xml" />
</display:table>
<img src="ChartViewer?list=ActivationDetailList" border=0 usemap="#imageMap">`enter code here`
答案 0 :(得分:0)
无需在url中再次传递列表,因为您可以从另一个servlet中的会话中获取此列表,就像在上一页/ servlet / jsp中的会话中一样...
请记住:我们无法在url中传递列表或任何实例(Object),我们只能在url中传递参数...