jsp request.getAttribute 中如何取值?
<logic:equalname="reportForm"property="viewFlg"value="2"><tablewidth="765"cellpadding...
<logic:equal name="reportForm" property="viewFlg" value="2">
<table width="765" cellpadding=2 cellspacing=0 border=1 align="center" class="table_style_100">
<tr class="tr_title">
<%
String storeName[] = (String[])request.getAttribute("allhead");
String allbody[][] = (String[][])request.getAttribute("allbody");
%>
<td nowrap width="2%" class="td_titletr"><bean:write name="commitDateListView" property="storeName[]" /></td>
<td nowrap width="2%" class="td_titletr"><bean:write name="commitDateListView" property="allbody[][]" /></td>
</tr>
</table>
</logic:equal> 展开
<table width="765" cellpadding=2 cellspacing=0 border=1 align="center" class="table_style_100">
<tr class="tr_title">
<%
String storeName[] = (String[])request.getAttribute("allhead");
String allbody[][] = (String[][])request.getAttribute("allbody");
%>
<td nowrap width="2%" class="td_titletr"><bean:write name="commitDateListView" property="storeName[]" /></td>
<td nowrap width="2%" class="td_titletr"><bean:write name="commitDateListView" property="allbody[][]" /></td>
</tr>
</table>
</logic:equal> 展开
6个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询