WebRoot/site/topic.jsp

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ 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="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style/main.css">
<title>欢迎访问领航致远JAVA联盟【频道名称】</title>
<c:set var="pageNoNav" value="${page.pageNo }"></c:set>
<c:set var="pageSizeNav" value="${page.pageSize }" ></c:set>
<c:set var="pagesCountNav" value="${page.pagesCount }" ></c:set>
<c:set var="pageIndexNav" value="${page.pageIndex }" ></c:set>
<c:set var="recordsCountNav" value="${page.recordsCount }" ></c:set>
</head>
<body>
<!-- 网站的logo,其它背景,首页横幅广告等等 -->
<div id="top">
	<img src="images/logo.gif" class="logo" title="领航致远JAVA联盟">
	<div class="bg">
	</div>
</div>
<!-- 首页的导航条 -->
	<jsp:include page="/site/IndexServlet" >
		<jsp:param value="nav" name="method"/>
		<jsp:param value="1" name="pageNo"/>
		<jsp:param value="15" name="pageSize"/>
	</jsp:include>
<!-- 首页中间 -->
<div id="mid">
	<!-- 首页左边 -->
	<div id="left" style="text-align:left">
		首页 -&gt; ${channel.name }
		<hr>
<c:forEach items="${articles }" var="article">
<!-- 文章标题及简介 -->
<div class="h2title">${article.title }</div>
<div CLASS="atime">
作者:${article.author }
| 来源:${article.source }
| 发布时间:${article.publishTime }
| 阅读:${article.clickScore }
| 留言:${article.msgCount }
</div>
预览:<br/>
${fn:substring(article.content,0,300) }...
<br/>
<a href="site/IndexServlet?method=findArticleById&id=${article.id }">【阅读全文】</a>
</c:forEach>
<br/>
<form id="form_page" action="site/IndexServlet?method=topic&id=${channel.id }" method="post">
	<input type="hidden" name="pageNo" id="pageNo" value="1"/>
	<input type="hidden" name="pageSize" id="pageSize" value="${pageSizeNav }"/>
</form>
后面还有 42 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。