列表上的a标签点击查看图片

<%@ page language="java" contentType="text/html; charset=utf-8"	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="st" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<%
	// 根路径取得
	String root = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><st:message code="videoterm.title"></st:message><st:message code="common.list"></st:message></title>
<jsp:include page="/admin/common/css.htm" />
</head>
<body>
	<div id="wrapper">
		<input type="Hidden" value="/bxx/bxxx/index.action" id="action" />
		//来自配置文件,
		<st:message code="resourcePath" var="resourcePath"/>
		<st:message code="commonPageSize" var="commonPageSize" />
		<jsp:include page="/admin/common/leftmenu.do" />
		<div id="page-wrapper" class="gray-bg dashbard-1">
			<div class="wrapper wrapper-content  animated fadeInRight">
				<div class="row ibox">
					<div class="col-md-12">
						<div class="ibox-content">
							<div class="table-responsive">
								<table class="table table-bordered table-hover">
									<thead>
										<tr>
											<th>NO</th>
											<th>视频分类</th>
											<th>分类图片</th
										</tr>
									</thead>
									<tbody>
										<c:forEach items="${bxxBean.resultList}" varStatus="i" var="item">
											<tr>
												<td>${i.count+(bxxBean.currentPage-1)*commonPageSize}</td>
												<td style="max-width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis">${item.c_name}</td>
												// 具体代码: <a target="_blank" href="/QSVideoApp/upload/image/15469353242495189032_cut.png">点击查看</a>
												<td><a target="_blank" href="<%=root %>${resourcePath}${item.c_picture}" >点击查看</a></td>
											</tr>
										</c:forEach>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
</body>
	<script type="text/javascript">
	</script>
</html>

猜你喜欢

转载自blog.csdn.net/qq_39822451/article/details/86134508