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

📄 bbsmain.jsp~16~

📁 JBuilder 2006 +SQL Server2000 +JavaBean+JSP开发的宠物医院管理系统
💻 JSP~16~
字号:
<%@page contentType="text/html; charset=GB2312"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="page" uri="/WEB-INF/pageTag.tld"%>
<html>
<head>
<title>留言板</title>
<script type="text/javascript" language="javascript">
function aa(){
  var bbsr = document.res.BBSRemark.value;
  if(bbsr.length==0){
    alert("留言不能为空!");
    return false;
  }
  return true;
}
</script>
</head>
<body bgcolor="#ffffff">
<h2 align="center">  兽医
${sessionScope.bvetBean.vname}  的留言板
</h2>
<form method="post" action="/WebModule/bbsservlet" name="form1">
<input type="hidden" name="vetName" value="${sessionScope.bvetBean.VID}"/>
<page:pagetag>
  <table align="center" width="70%">
    <tr>
      <th width="7%">      </th>
      <th width="8%">发言人</th>
      <th width="40%">发言内容</th>
      <th width="15%">发言时间</th>
    </tr>
    <c:forEach items="${bbsbean}" var="bbs">
      <tr>
        <td align="center">${bbs.BBSID}          楼
        </td>
        <td align="center">${bbs.one}        </td>
        <td align="left">${bbs.BBSRemark}        </td>
        <td align="center">${bbs.BBSTime}        </td>
      </tr>
    </c:forEach>
  </table>
</page:pagetag>
</form>
<hr/>
<br>
<form action="/WebModule/bbsmainservlet" method="POST" name="res" onsubmit="return aa()">
<input type="hidden" name="vid" value="${sessionScope.bvetBean.VID}"/>
<p align="center">
  <textarea cols="50" rows="4" name="BBSRemark">  </textarea>
  <br/>
  <input type="submit" name="Submit" value="提交">
  <input type="reset" value="取消">
</p>
</form>
</body>
</html>

⌨️ 快捷键说明

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