不管后台怎么封装,最好是封装成易于前台展示的模型。。。
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/jsp/inc/cr_inc.jsp"%>
<%@ include file="/jsp/creditreportview2010/layout/left/leftHead.jsp"%>
<div class="Content">
<div class="heading" id="jinchukou"><%=WebUtils.getMessage("jsp_IE_.00002") %><%--进出口情况 --%></div>
<table width="100%" class="listStyle04" border="0" cellspacing="0" cellpadding="0">
<c:if test="${not empty reportSumBean.IEPermit}">
<tr >
<td valign="top" align="left" ><%=WebUtils.getMessage("jsp_CRV_.L_00007") %><%--进出口权: --%></td>
<td valign="top" align="left" >${reportSumBean.IEPermit}</td>
</tr>
</c:if>
<c:if test="${not empty reportSumBean.filingNumber}">
<tr >
<td valign="top" align="left" ><%=WebUtils.getMessage("java_.CCM_00044") %><%--备案文号: --%></td>
<td valign="top" align="left" >${reportSumBean.filingNumber}</td>
</tr>
</c:if>
<c:if test="${not empty reportSumBean.sfilingDate}">
<tr >
<td valign="top" align="left" ><%=WebUtils.getMessage("java_.CCM_00045") %><%--备案时间: --%></td>
<td valign="top" align="left" >${reportSumBean.sfilingDate}</td>
</tr>
</c:if>
<c:if test="${not empty reportSumBean.filingOrgan}">
<tr >
<td valign="top" align="left" ><%=WebUtils.getMessage("java_.CCM_00046") %><%--备案机关: --%></td>
<td valign="top" align="left" >${reportSumBean.filingOrgan}</td>
</tr>
</c:if>
</table>
<br />
<c:if test="${not empty importExportBean}">
<table width="100%" id="list016" class="listStyle02" border="0" cellspacing="0" cellpadding="0">
<p><%=WebUtils.getMessage("java_.CCM_00047")%><%--主要自营进口商品: --%></p>
<tr>
<th class="textright"><%=WebUtils.getMessage("java_h.FBD_00000")%></th><%--/*商品编码*/--%>
<th width="18%" style="text-align:right; padding-right:10px;"><%=WebUtils.getMessage("java_h.FBD_00001")%></th><%--/*单位*/ --%>
<c:forEach items ="${importExportBean.yearOfImportAndExport}" var = "year">
<th width="18%" style="text-align:right; padding-right:10px;">${year}</th>
</c:forEach>
</tr>
<c:forEach items="${importExportBean.importProduceMap}" var="data">
<tr>
<td >${data.key}</td>
<td class="textright">${data.value.unit}</td>
<c:forEach var="count" items="${data.value.importproduct}">
<c:choose>
<c:when test="${not empty count}">
<td class="textright">${count}</td>
</c:when>
<c:otherwise>
<td class="textright">--</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:forEach>
</table>
<p></p>
<table width="100%" id="list016" class="listStyle02" border="0" cellspacing="0" cellpadding="0">
<p><%=WebUtils.getMessage("java_.CCM_00048") %><%--主要自营出口商品: --%></p>
<tr>
<th class="textright"><%=WebUtils.getMessage("java_h.FBD_00000")%></th><%--/*商品编码*/--%>
<th width="18%" style="text-align:right; padding-right:10px;"><%=WebUtils.getMessage("java_h.FBD_00001")%></th><%--/*单位*/ --%>
<c:forEach items ="${importExportBean.yearOfImportAndExport}" var = "year">
<th width="18%" style="text-align:right; padding-right:10px;">${year}</th>
</c:forEach>
</tr>
<c:forEach items="${importExportBean.exportProduceMap}" var="data">
<tr>
<td >${data.key}</td>
<td class="textright">${data.value.unit}</td>
<c:forEach var="count" items="${data.value.exportproduct}">
<c:choose>
<c:when test="${not empty count}">
<td class="textright">${count}</td>
</c:when>
<c:otherwise>
<td class="textright">--</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:forEach>
</table>
<p></p>
<table width="100%" id="list016" class="listStyle02" border="0" cellspacing="0" cellpadding="0">
<tr>
<th class="textright"></th>
<th width="18%" style="text-align:right; padding-right:10px;"><%=WebUtils.getMessage("java_Util_.coin")%></th><%--/*货币*/ --%>
<c:forEach items ="${importExportBean.yearOfImportAndExport}" var = "year">
<th width="18%" style="text-align:right; padding-right:10px;">${year}</th>
</c:forEach>
</tr>
<tr>
<td ><%=WebUtils.getMessage("java_h.FBD_00002") %></td><%-- 自营进口商品总额--%>
<td class="textright"><%=WebUtils.getMessage("currency.3") %></td><%--/*美元*/ --%>
<c:forEach var="count" items="${importExportBean.showImportTradeSum}">
<c:choose>
<c:when test="${not empty count}">
<td class="textright">${count}</td>
</c:when>
<c:otherwise>
<td class="textright">--</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
<tr>
<td ><%=WebUtils.getMessage("java_h.FBD_00003") %></td><%-- 自营出口商品总额--%>
<td class="textright"><%=WebUtils.getMessage("currency.3") %></td><%--/*美元*/ --%>
<c:forEach var="count" items="${importExportBean.showExportTradeSum}">
<c:choose>
<c:when test="${not empty count}">
<td class="textright">${count}</td>
</c:when>
<c:otherwise>
<td class="textright">--</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</table>
<p></p>
<table width="100%" id="list016" class="listStyle02" border="0" cellspacing="0" cellpadding="0">
<tr>
<th class="textright"><%=WebUtils.getMessage("java_.CCM_20343")%></th><%--/*主要自营进口地区*/--%>
<c:forEach items ="${importExportBean.yearOfImportAndExport}" var = "year">
<th width="23%" style="text-align:right; padding-right:10px;">${year}</th>
</c:forEach>
</tr>
<c:forEach var="count" items="${importExportBean.importCountryData}">
<tr>
<td > </td>
<c:forEach var="data" items="${count}">
<td class="textright">${data}</td>
</c:forEach>
</tr>
</c:forEach>
</table>
<p></p>
<table width="100%" id="list016" class="listStyle02" border="0" cellspacing="0" cellpadding="0">
<tr>
<th style="text-align:left; padding-left:10px;"><%=WebUtils.getMessage("java_.CCM_20344")%></th><%--/*主要自营出口地区*/--%>
<c:forEach items ="${importExportBean.yearOfImportAndExport}" var = "year">
<th width="23%" style="text-align:right; padding-right:10px;">${year}</th>
</c:forEach>
</tr>
<c:forEach var="count" items="${importExportBean.exportCountryData}">
<tr>
<td > </td>
<c:forEach var="data" items="${count}">
<td class="textright">${data}</td>
</c:forEach>
</tr>
</c:forEach>
</table>
</c:if>
</div>