main.jsp

来自「java + sqlserver2000编写的一个网上购书系统,实现了一些基本的」· JSP 代码 · 共 36 行

JSP
36
字号
<%@ page language="java" pageEncoding="GB2312"%>
<%
	try{
		if(session.getAttribute("Name")==null || session.getAttribute("Name")=="" ){
			out.println("<script language=javascript>");
			out.println("alert('你未登陆,无权进行操作!');");
			out.println("window.location.href='login.jsp';");
			out.println("</script>");
		}
	}catch(Exception e){
		out.println(e);
	}
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'main.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="73,*,40" cols="*" framespacing="1" frameborder="yes" border="1" bordercolor="#00CCFF">
  <frame src="top.jsp" name="top" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
 <frameset rows="*" cols="210,*" framespacing="1" frameborder="yes" border="1" bordercolor="#00CCFF">
  <frame src="left.jsp" name="middleleft" scrolling="No" noresize="noresize" id="middleleftFrame" title="leftFrame"/>
  <frame src="index.jsp" name="middleright" id="middlerightFrame" title="mainFrame" />
 </frameset>
  <frame src="foot.jsp" name="bottom" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset><noframes></noframes>
</html>

⌨️ 快捷键说明

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