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

📄 frontpage.jsp

📁 运用JSP/servlet/JavaBean 技术
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" errorPage="pages/subPages/Error.jsp"%>
<jsp:directive.page import="com.lovo.po.User"/>
<%
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 'FrontPage.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">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<%
		session.removeAttribute("isUpdate");
	%>
  </head>
  
  <body>
    <div>
    <span id="time"></span>
    <script type="text/javascript">
		<!-- 
			var txt = document.getElementById("time");
			function hello()
			{
				var now = "您";
				var today = new Date();
				hour = today.getHours();
				if(hour >= 5 && hour <= 8)
				{
					now = "早上";
				}
				if(hour > 8 && hour <= 12)
				{
					now = "上午";
				}
				if(hour > 12 && hour <= 18)
				{
					now = "下午";
				}
				if(hour > 18 && hour <= 23)
				{
					now = "晚上";
				}
				txt.innerText = now + "好,";
			}
			setTimeout("hello()",400);
		//-->
	</script>
    <span><%=((User)session.getAttribute("user")).getEmailName()%>@qq.com</span>
    </div>
  </body>
</html>

⌨️ 快捷键说明

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