⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fatie.jsp

📁 jsp bbs + servlet jiu shizhe xie le
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>发表帖子</title>
 <script type="text/javascript">
 	function fatie(){
		with(document.forms.form1){
			if((title.value).replace(/\s/g,"")==""){
				alert("请认真填写标题!");
				return;
			}
			
			if(context.value.replace(/\s/g,"")==""){
				alert("内容不能为空!");
				return;
			}else if(context.value.replace(/\s/g,"")=="在此发表你的高见"){
				alert("请发表你的高见!");
				return;
			}		
		}
		if(window.confirm("你确认要发表吗?")){
				document.forms.form1.submit();
		}
	}
 </script>
</head>
<body bgcolor="#e6f0df"><div ></div>
   <form action="faTie" method="post" name="form1">
     <jsp:useBean id="user" class="bbs.ahut.javabean.UserBean" scope="session"/>
	 <input type="hidden" name="userno" value="<jsp:getProperty name="user" property="userno" />">
	 <input type="hidden" name="username" value="<jsp:getProperty name="user" property="username" />"><font color="#0080ff">
     </font><font><strong><font color="#0080ff">发表你的帖子</font></strong></font>
     <hr style="border:2px double #e8e8e8"/>
     <table>
	     <tr>
	        	<td>标&nbsp;题</td>
	        	<td><input type="text" name="title"></td>
	     </tr>
	 </table>
	 <table>
	     <tr>	        	
	        	<td> <textarea name="context" rows="20" cols="80">在此发表你的高见</textarea>  </td>
	     </tr>
     </table>
     <table>
		<tr>
		   <td ><input type="button" value="发表" onclick="fatie()" style="background-color: rgb(128, 255, 128);"></td>
		   <td ><input type="reset" value="重写" style="background-color: rgb(128, 255, 128);"></td>			
		</tr>
	  </table>
	</form>  
</body>
</html>

⌨️ 快捷键说明

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