📄 newtopic.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="../error.jsp" %>
<script language="javascript">
<!-- Begin validation script
function checkForm(){
if(document.form1.title.value==""){
alert("请输入标题!");
return false;
}
if(document.form1.content.value==""){
alert("请输入内容!");
return false;
}
return true;
}
-->
</script>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../hellking.css" type=text/css rel=stylesheet>
</head>
<body>
<form name="form1" action="/jspdev/servlet/newtopicservlet" method=post onSubmit="return checkForm()">
<table align="center" bgcolor="#008800" border="0" cellspacing="2" cellpadding="5" width=80%>
<tr bgcolor="#cccccc">
<td>标题</td> <td><input type=text name="title"></td>
</tr>
<tr bgcolor="#cc99cc">
<td>作者</td><td><input type=text value=<%=session.getAttribute("name")%> name=author></td>
</tr>
<tr bgcolor="#cccccc">
<td>电子邮件</td><td><input type=text value=<%=session.getAttribute("email")%> name=email></td>
</tr>
<tr bgcolor="#cc99cc">
<td>内容</td><td><textarea cols=40 rows=9 name=content></textarea></td>
</tr>
<tr bgcolor="#cccccc">
<td>提交</td><td><input type=submit value=提交> </td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -