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

📄 welcome.jsp

📁 jsp实现的论坛 使用jsp+servlet+mysql 开发环境是myeclipes
💻 JSP
字号:
<%@ page language="java" import="java.util.*,database.*,entity.Notice" pageEncoding="GB18030"%>
<%
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>My JSP 'welcome.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">
<!--
.STYLE1 {color: #33CCFF}
-->
    </style>
</head>
  
  <body bgcolor="#C0DFFD">
  <p>欢迎进入我们的论坛!</p>
  <%DataModel dm=new DataModel();
  Vector v=dm.getNotice(); %>
  <p><img src="old.gif" width="32" height="25"  >论坛公告:</p>
  
  <table width="75%" height="179" border="1">
    <tr>
<%for(Object o:v)
{   Notice notice=(Notice)o;
    

 %>   
      <th width="10%" height="31" scope="row"><font size="2" style="font-weight: normal;">公告</font>:</th>
      <th width="67%" scope="row"><div align="left"><%=notice.getTitile() %></div></th>
      <th width="23%" scope="row"><%=notice.getSendtime().toString().substring(0,19) %></th>
    </tr>
    <tr>
      <th  height="60" scope="row"><font size="2" style="font-weight: normal;">内容</font>:</th>
      <th colspan="2" scope="row"><div align="left"><%=notice.getContent() %></div></th>
    </tr>
<%} %>   
  </table>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p><br>
  </p>
  </body>
</html>

⌨️ 快捷键说明

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