bulletin.jsp

来自「是用jsp开发的旅游管理网站」· JSP 代码 · 共 45 行

JSP
45
字号
<%@ 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 + =
减小字号Ctrl + -
显示快捷键?