这个留言板可以添加留言薄,重新填写留言,查看所有留言。写了三个.jsp文件,
其代码如下
这是第一个代码也是整体的框架:
<%@
page contentType="text/html;charset=UTF-8"
%>
<%
String temp = new String();
temp = (String) application.getAttribute("num");
if (temp == null) {
application.setAttribute("num", "0");
}
%>
<html>
<head>
<title>留言板</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL, winName, features) {
window.open(theURL, winName, features);
}
-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> </p>
<p align="center">
<b><font size="5" color="#FF6633">留言板</font></b>
</p>
<hr size="1">
<form name="form1" method="post" action="202-2.jsp">
<table width="60%" border="0" cellspacing="1" cellpadding="3"
a