⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forumarticle.jsp

📁 struts+hibernate BBS mysql数据库 功能基本齐全
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@page import="com.elan.forum.model.ForumTopic;"%>
<%@ include file = "/forum/view/inc/Taglib.jsp" %>
<%
List<ForumTopic> alist = (List<ForumTopic>)request.getAttribute("articleList"); 
%>
<html>
	<head>
		<title>文章类别列表</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
	</head>
	<body>
	<center>
	<html:messages id="aInfo" name="msgs">
		<bean:write name="aInfo"/>
	</html:messages>
	</center>
		<table border="1" align="center">
		<thead>
			<tr>
				<th colspan="10">
					文章类型列表
				</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>id</td>
				<td>标题</td>
				<td>作者编号</td>
				<td>作者</td>
				<td>类型</td>
				<td>点击</td>
				<td>回复</td>
				<td>发表时间</td>
				<td>精华</td>
				<td>审核</td>
			</tr>
			<%
			//for(Forumarticle fa : alist) {
				for(int i = 0; i < alist.size(); i++) {
					ForumTopic fa = (ForumTopic)alist.get(i);
			%>
			<tr>
				<td><%=fa.getId() %></td>
				<td><%=fa.getTitle() %></td>
				<td><%=fa.getForumUser().getId() %></td>
				<td><%=fa.getAuthor() %></td>
				<td><%=fa.getTopicType() %></td>
				<td><%=fa.getClick() %></td>
				<td><%=fa.getReply() %></td>
				<td><%=fa.getCreateTime() %></td>
				<td><%=fa.getComplain() %></td>
				<td><%=fa.getPass() %></td>
			</tr>
			<%
			}
			%>
		</tbody>
		
		<tfoot align="center">
			<tr>
				<td colspan="10">foot</td>
			</tr>
		</tfoot>
		</table>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -