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

📄 browse.jsp

📁 struts hibernate spring实现新闻发布系统含说明文档
💻 JSP
字号:
<%@ page language="java" pageEncoding="gbk"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<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">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<title>评论页面</title>

	<LINK href="images/jiaoyu.css" type=text/css rel=stylesheet>
	<LINK href="images/educss910.css" type=text/css rel=stylesheet>
	<style type="text/css">
.pl_left {
	width: 772px;
	margin-right: auto;
	margin-left: auto;
}

body {
	text-align: center;
}
</style>
</head>

<body bgcolor="#339966">
	<TABLE id=MiniPublicTopTab cellSpacing=0 cellPadding=0 width="772px"
		align=center border=0>
		<TBODY>
			<TR>
				<TD>
					&nbsp;
				</TD>
			</TR>
		</TBODY>
	</TABLE>

	<TABLE class=ge2 cellSpacing=0 cellPadding=0 width=772px align=center
		border=0>
		<TBODY>
			<TR>
				<TD background=images/logo.jpg height="130px" width="772px"></TD>
			</TR>
		</TBODY>
	</TABLE>
	<TABLE id=KyNav cellSpacing=0 cellPadding=0 width=772px align=center
		border=0>
		<TBODY>
			<TR>
				<TD align="center" background=images/ky_03.gif height=26></TD>
			</TR>
		</TBODY>
	</TABLE>
	<div class="pl_left" style="width: 772px;">
		<logic:iterate id="news" name="news" scope="session">
			<table border="1" width="100%" align="center">
				<tr>
					<td>
						<bean:write name="news" property="user.username" />
					</td>
				</tr>
				<tr>
					<td>
						<bean:write name="news" property="title" />
					</td>
				</tr>
				<tr>
					<td>
						<bean:write name="news" property="time" />
					</td>
				</tr>
				<tr>
					<td>
						<bean:write name="news" property="content" />
					</td>
				</tr>
			</table>

			<!--循环评论-->
			<logic:iterate id="comment" name="news" property="comments"
				indexId="index">
				<table width="100%" border="1" align="center">
					<tr>
						<td>
							<bean:write name="index" />
							<bean:write name="comment" property="user.username" />
							<bean:write name="comment" property="time" />
						</td>
						<!--此处填写文章评论楼数 评论者姓名 以及评论发表时间-->
					</tr>
					<tr>
						<td>
							<bean:write name="comment" property="content" />
						</td>
						<!--此处填写文章评论-->
					</tr>
				</table>
			</logic:iterate>
		</logic:iterate>
		<html:form action="/comment" method="post">
			<table width="100%" border="1" align="center">
				<tr>
					<td>
						发表评论
						<html:errors />
					</td>
				</tr>
				<logic:present name="user" scope="session">
					<tr>
						<td>
							<html:textarea property="content" cols="80" rows="20"></html:textarea>
						</td>
					</tr>
					<tr>
						<td>
							<html:submit value="发表"/>
							<html:cancel value="取消" />
						</td>
					</tr>
				</logic:present>
				<logic:notPresent name="user" scope="session">
					<tr>
						<td>
							<html:textarea property="content" cols="100" value="请登入后再发表评论!!"></html:textarea>
						</td>
					</tr>
				</logic:notPresent>
			</table>
		</html:form>
	</div>
</body>
</html:html>

⌨️ 快捷键说明

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