grouplist.jsp

来自「jsp实现的论坛 使用jsp+servlet+mysql 开发环境是myec」· JSP 代码 · 共 78 行

JSP
78
字号
<%@ page language="java" import="java.util.*,database.DataModel" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 
    <base href="<%=basePath%>">
    
    <title>My JSP 'grouplist.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 {
	
	
}
.STYLE1 {
	font-family: "华文彩云";
	font-weight: bold;
	font-size: 24px;
	color: #003333;
}
-->
</style>
<link rel="stylesheet" href="mm_travel2.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//---------------   END LOCALIZEABLE   ---------------
</script>
  </head>
  
  <body onmouseover="self.status='摩卡新视界论坛';return true;" oncontextmenu="self.event.returnValue=false" bgcolor="#E6F3FF">
  <%DataModel dm=new DataModel(); 
  Vector v=dm.getGroupList();
  
  
  %>

  
<table border="0" cellspacing="0" cellpadding="0" width="165" id="navigation" bgcolor="#E6F3FF">
<tr>
          <td width="165"><img border="0" align="left" src="mm_travel_photo1.jpg"> <br />
		 &nbsp;<br /></td>
        </tr><tr>
          <td width="165">&nbsp;<br />
		 &nbsp;<br /></td>
        </tr>
 <%for(Object o:v) 
 { out.print(  " <tr><td width=\"165\"><a href=\"messagelist.jsp?groupno="+((Vector)o).get(0)+"\" class=\"navText\" target=\"mainFrame\" title=\"goto\">"+((Vector)o).get(1)+"</a></td></tr>")         ;
 
   
  }
   %>
        <tr>
          <td width="165">&nbsp;<br />
		 &nbsp;<br /></td>
        </tr>
       
      </table>
   </body>
   
</html>

⌨️ 快捷键说明

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