chat_send.jsp

来自「《jsp编程起步》里面的所有源代码」· JSP 代码 · 共 41 行

JSP
41
字号
<%
int i;
String stri=request.getParameter("i");
String id=request.getParameter("id");
%>

<html>
<head>
	<script language="javaScript">
		function pre(){
			document.chat_send.message.focus();
	<%
	if(stri!=null){
		if(stri.equals("refresh"))%>
			parent._displayFrame.location.href="chat_display.jsp?id=<%=id%>";
	<%
		if(stri.equals("close"))
	%>	
			window.parent.close();
	
	<%
	}
	%>
		

	   	}
	</script>
</head>

<body onload=javascript:pre()>



<form name=chat_send action=send_handle.jsp method=post>
<input type=hidden name=id value=<%=id%>>
<input type=text name=message size=60>
<input type=submit value=提交>
</form>
</body>
</html>

⌨️ 快捷键说明

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