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

📄 bbslistfa.jsp

📁 用JSP写的论坛源代码 走过路过的各位千万不要错过啊!!!!
💻 JSP
字号:
																<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="serv.bbs;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>bbslistfa.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

    <style type="text/css">
<!--
body {
	background-color: #FFFFFF;
}
.STYLE5 {
	font-size: 18px;
	font-weight: bold;
}
.STYLE8 {color: #000000}
.STYLE9 {
	color: #557FAA;
	font-size: x-large;
}
-->
    </style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
  
 <body background ="/May/images/1.jpg">


  <table width="892" border="0" align="center">
    <tr>
      <th width="882" height="94"  bgcolor="#D4DFFF">
        <h2 class="STYLE9">帖子列表</h2></th>
    </tr>
 <table width="1024" height="50" border="0" align="center">
    <tr>
     
      <td width="190" bgcolor="#FFFFFF"><div align="center" class="STYLE5 STYLE8">
        <div align="center">主题</div>
      </div></td>
      <td width="210" bgcolor="#FFDFFF"><div align="center" class="STYLE5">
        <div align="center">发帖人</div>
      </div></td>
      <td width="182" bgcolor="#FFFFFF"><div align="center" class="STYLE5">
        <div align="center">点击率</div>
      </div></td>
	  <td width="188" bgcolor="#FFDFFF"><div align="center" class="STYLE5">
	    <div align="center">回帖数</div>
	  </div></td>
	  <td width="232" bgcolor="#FFFFFF"><div align="center" class="STYLE5">
	    <div align="center">发帖时间</div>
	  </div></td>
	  
    </tr>
</table>
  <% try{ 
     request.setCharacterEncoding("gb2312") ;
   	 ArrayList list = (ArrayList)request.getAttribute("result");
     Iterator it=list.iterator();
     bbs bbsfa=new bbs();
     while(it.hasNext())
	   {
	      bbsfa=(bbs)it.next();
%>
  
  <table width="1030" border="0" align="center">
    <tr>
      <td width="3">&nbsp;</td>
      <td width="189"><div align="center"><a href="/May/servlet/selecttopic?bbstopic=<%=bbsfa.getBbsTopic()%>"><%=bbsfa.getBbsTopic()%></a></div></td>
      <td width="210"><div align="center"><%=bbsfa.getBbsUsername()%></div></td>
      <td width="182"><div align="center"><%=bbsfa.getBbsHits()%></div></td>
      <td width="189"><div align="center"><%=bbsfa.getBbsChild()%></div></td>
		 <td width="231"><div align="center"><%=bbsfa.getBbsDateandtime()%></div></td>
     
    </tr>
 </table>
  
 <%
 	}
     }
       catch(Exception e){}
    %>
    
</body>
</html>

⌨️ 快捷键说明

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