JSP新闻系统之四后台主页面
【摘要】
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
...
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
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>My JSP 'index.jsp' starting page</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>
<frameset rows="112,*" frameborder="no" border="0" framespacing="0">
<frame src="admin/top.jsp" name="topFrame" scrolling="No"
noresize="noresize" id="topFrame" title="topFrame" />
<frameset id="mainframe" border="0" frameborder="no" framespacing="0"
cols="184,*">
<frame src="admin/left.jsp" name="side" id="side" title="side"
scrolling="auto" />
<frame src="admin/main.jsp" name="main" id="main" title="main"
scrolling="auto" />
</frameset>
</frameset>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
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>My JSP 'top.jsp' starting page</title>
<span style="white-space:pre"> </span><meta http-equiv="pragma" content="no-cache">
<span style="white-space:pre"> </span><meta http-equiv="cache-control" content="no-cache">
<span style="white-space:pre"> </span><meta http-equiv="expires" content="0">
<span style="white-space:pre"> </span><meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<span style="white-space:pre"> </span><meta http-equiv="description" content="This is my page">
<span style="white-space:pre"> </span>
<span style="white-space:pre"> </span><link rel="stylesheet" type="text/css"
<span style="white-space:pre"> </span>href="css/css.css">
<span style="white-space:pre"> </span>
</head>
<body>
<img src="images/logo.jpg" height="112" width="100%"/>
<img src="images/top12.jpg" height="26" width="100%">
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'left.jsp' starting page</title>
<span style="white-space:pre"> </span><meta http-equiv="pragma" content="no-cache">
<span style="white-space:pre"> </span><meta http-equiv="cache-control" content="no-cache">
<span style="white-space:pre"> </span><meta http-equiv="expires" content="0">
<span style="white-space:pre"> </span><meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<span style="white-space:pre"> </span><meta http-equiv="description" content="This is my page">
<span style="white-space:pre"> </span><link rel="stylesheet" type="text/css" <span style="white-space:pre"> </span>href="css/css.css">
</head>
<body bgcolor="#31827C">
<table width="170" height="135" align="center" cellpadding="0" cellspacing="0" background="images/msg.gif">
<tr>
<td width="170" height="64" valign="bottom" background="" class="menu_title"><table width="100%" height="21" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="80"> </td>
<td><a href="index.jsp" target="_parent"><strong>退出系统</strong></a></td>
</tr>
</table></td>
</tr>
<tr>
<td width="170" align="center"><table width="100%" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="38%"> </td>
<td width="62%"><span class="red_9"> Admin</span></td>
</tr>
<tr>
<td width="38%"> </td>
<td> <span class="red_9"> 1级</span></td>
</tr>
</table></td>
</tr>
</table>
<table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
<tr align="center">
<span style="white-space:pre"> </span><td background="images/bar.gif" valign="middle"><a href="admin/addTopic.jsp" target="main"><strong>添加主题</strong></a></td>
</tr>
</table>
<table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
<tr align="center">
<span style="white-space:pre"> </span><td background="images/bar.gif" valign="middle"><a href="admin/showAllTopic.jsp" target="main"><strong>查看主题</strong></a></td>
</tr>
</table>
<table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
<tr align="center">
<span style="white-space:pre"> </span><td background="images/bar.gif" valign="middle"><a href="admin/showAllTopic.jsp" target="main"><strong>编辑主题</strong></a></td>
</tr>
</table>
<table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
<tr align="center">
<span style="white-space:pre"> </span><td background="images/bar.gif" valign="middle"><a href="admin/showAllUser.jsp" target="main"><strong>查看用户</strong></a></td>
</tr>
</table>
<table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
<tr align="center">
<span style="white-space:pre"> </span><td background="images/bar.gif" valign="middle"><a href="admin/register.jsp" target="main"><strong>添加用户</strong></a></td>
</tr>
</table>
<table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
<tr align="center">
<span style="white-space:pre"> </span><td background="images/bar.gif" valign="middle"><a href="admin/addNews.jsp" target="main"><strong>添加新闻</strong></a></td>
</tr>
</table>
<table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
<tr align="center">
<span style="white-space:pre"> </span><td background="images/bar.gif" valign="middle"><a href="admin/addNews.jsp" target="main"><strong>编辑新闻</strong></a></td>
</tr>
</table>
</body>
</html>
<%@ page language="java"
import="java.util.*,java.text.SimpleDateFormat"
pageEncoding="utf-8"%>
<%
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>My JSP 'main.jsp' starting page</title>
<span style="white-space:pre"> </span><meta http-equiv="pragma" content="no-cache">
<span style="white-space:pre"> </span><meta http-equiv="cache-control" content="no-cache">
<span style="white-space:pre"> </span><meta http-equiv="expires" content="0">
<span style="white-space:pre"> </span><meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<span style="white-space:pre"> </span><meta http-equiv="description" content="This is my page">
<span style="white-space:pre"> </span><style type="text/css">
<span style="white-space:pre"> </span>body{
<span style="white-space:pre"> </span>background-image: url(images/Bg.gif)
<span style="white-space:pre"> </span>}
<span style="white-space:pre"> </span></style>
</head>
<body>
<%
<span style="white-space:pre"> </span>SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
<span style="white-space:pre"> </span>String str = sdf.format(new Date());
%>
<%=str %>
</body>
</html>
文章来源: aaaedu.blog.csdn.net,作者:tea_year,版权归原作者所有,如需转载,请联系作者。
原文链接:aaaedu.blog.csdn.net/article/details/53044522
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)