📄 send.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="../error/error.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>发送消息</title>
<link rel="stylesheet" type="text/css" href="../image/com.css" />
<jsp:useBean id="line" class="useBean.Link_db" scope="request" />
<jsp:useBean id="time" class="useBean.Usetime" scope="request" />
<script language="JavaScript" src="../image/com.js"></script>
</head>
<%
String username="";
String lname="";
try{
username=(String)session.getAttribute("name");
}catch(Exception e){
session.setAttribute("error","用户名不存在");
response.sendRedirect("../error/errorpage.jsp");
}
try{
lname=(String)request.getParameter("lname");
}catch(Exception e){
lname="所有人";
}
lname=line.chStr(lname);
%>
<body>
<table width="675" height="60" align="center" border="1" bordercolor="#ffffff" bordercolordark="#ffffff" bordercolorlight="#0066ff"
cellspacing="0" cellpadding="-1">
<form method="post" action="send_save.jsp" name="form1" target="mainFrame">
<tr >
<td width="538" height="30" bgcolor="#D1C1E8"> <%=username%>
<select name="biaoqing" >
<option value="兴奋地">兴奋地</option>
<option value="高兴地">高兴地</option>
<option value="愤怒地">愤怒地</option>
<option value="冷冷地">冷冷地</option>
<option value="恶狠狠地">恶狠狠地</option>
<option value="色眯眯地">色眯眯地</option>
<option value="含情默默地">含情默默地</option>
<option value="没瞧起地">没瞧起地</option>
</select>
对
<input name="lname" type="text" size="20" maxlength="20" value="<%=lname%>"/>
说</td>
<td width="145" align="center" bgcolor="#D1C1E8">字体颜色
<select name="selcolor" id="id_selcolor">
<option value="black">黑色</option>
<option value="red">红色</option>
<option value="blue">蓝色</option>
<option value="green">绿色</option>
<option value="yellow">黄色</option>
</select></td>
</tr>
<tr bgcolor="#D1C1E8" >
<td height="30"><input name="said" type="text" size="65" maxlength="100" onkeyup="return Myenter()"/>
<input type="button" name="button" value="发送" onclick="send()" /></td>
<td height="30" align="center" bgcolor="#D1C1E8"><a href="backs.jsp" >退出聊天室</a></td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -