📄 main.jsp
字号:
<%@ 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -