📄 lframe.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="../error/error.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<jsp:useBean id="llogin" class="useBean.Link_db" scope="request" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>聊天室</title>
</head>
<%
String username="";
try{
username=(String)session.getAttribute("name");
}catch(Exception e){
session.setAttribute("error","用户名不存在");
response.sendRedirect("../error/errorpage.jsp");
}
int temp=0;
String sqls="SELECT * FROM associator WHERE 用户名 = '"+username+"' AND 在线 = 1";
String sqlu="UPDATE associator SET 在线=1 WHERE 用户名='"+username+"'";
temp=llogin.select(sqls);
if(temp>0){
session.setAttribute("error","用户名正在使用");
response.sendRedirect("../error/errorpage.jsp");
}else{
temp=0;
temp=llogin.update(sqlu);
}
%>
<frameset rows="*,100" cols="*" framespacing="-3" frameborder="yes" border="-3" bordercolor="#993399">
<frameset cols="120,*" framespacing="-3" frameborder="yes" border="-3" bordercolor="#993399">
<frame src="line.jsp" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame"/>
<frame src="liao.jsp" name="mainFrame" id="mainFrame" />
</frameset>
<frame src="send.jsp" name="send" scrolling="No" noresize="noresize" id="bottomFrame" target="mainFrame"/>
</frameset>
<noframes><body>
</body></noframes>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -