shownotice.jsp

来自「图书馆管理系统 能满足 查询」· JSP 代码 · 共 60 行

JSP
60
字号
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ 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"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<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">
		<link href="<%=basePath%>/css/style.css" rel="stylesheet">
		<link href="<%=basePath%>/css/main.css" rel="stylesheet">

	</head>

	<body>
		<form action="" name="showform" method="post">
			<div class="right">
				<div class="content">
					<p align="center">
						查看公告
					</p>
					<center>
					<marquee id=scrollarea onmouseover=this.stop();
						onmouseout=this.start(); scrollAmount=3 scrollDelay=100
						direction=up loop=-1>
						<logic:present name="notice">
							<logic:iterate id="n" name="notice" type="com.jxyd.vo.NoticeBean">
											主题:
                                          <%=n.getTitle() %><br>
											内容:
											<%=n.getContent() %><br>
											发布时间:
											<%=(n.getAddDate().substring(0,10)) %><br>
											发布人:图书馆<br>
										****************	<br>
							</logic:iterate>
						</logic:present>
					</marquee>
					</center>
				</div>
			</div>
		</form>
	</body>
</html>

⌨️ 快捷键说明

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