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

📄 bulletin.jsp

📁 是用jsp开发的旅游管理网站
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" import="bull.bulletin"%>
<%@ page language="java" import="java.util.*"%>
<%@ page language="java" import="java.io.*"%>

<jsp:useBean id="j" scope="application" class="jdbc.jdbc"/>
<jsp:useBean id="b" scope="application" class="bull.bulletin_show"/>
                       
<body>
<form name="form1" method="post" action="">
  <table width="90%" border="1" cellspacing="0" bordercolor="#CCCCFF">
    <tr> 
      <td colspan="2"> <div align="center">公告栏</div></td>
    </tr>
    <%

b.con=j.getConnection();

Collection bcol=b.b_show();
Iterator it=bcol.iterator();

while(it.hasNext())
{
 bulletin bu=(bulletin)it.next();
%>
    <tr> 
      <td width="91%"> <a href="bulletin_intro.jsp?title=<%=bu.getBulletin_title()%>" target="_blank"> 
        <%out.print(bu.getBulletin_title());%>
      </td>
    </tr>
    <%
it.remove();
}
j.releaseConnection(b.con);
%>
  </table>
  <p align="right"> 
    <input type="submit" name="Submit" value="提交">
  </p>
</form>
</body>



⌨️ 快捷键说明

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