日期:2014-05-17 浏览次数:20838 次
<c:if test="${!empty(requestScope.path)}">
<script>
parent.document.getElementById("path").value="${requestScope.path}";
parent.document.getElementById("view").innerHTML="<img src=\"${pageContext.request.contextPath}/${requestScope.path}\" height='200 width='200'/> "
</script>
</c:if>
[code=text]
<tr>
<td>
图片
</td>
<td>
<iframe
src="${pageContext.request.contextPath }/upload.jsp?path=${requestScope.product.path}"
width="100%" height="25" marginheight="0" marginwidth="0"
scrolling="no" frameborder="0"></iframe>
</td>
</tr>
<tr>
<td>
浏览
</td>
<td id="view">
<c:if test="${empty(requestScope.product.path )}">
</c:if>
<c:if test="${!empty(requestScope.product.path)}">
<img
src="${pageContext.request.contextPath }/${requestScope.product.path}"
width="200" height="200" />
</c:if>
</td>
</tr>