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

📄 newslist.jsp

📁 在线信息发布系统。在Eclipse下进行开发结合了struts等主流技术
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=gb2312"
    pageEncoding="gb2312"%>
    
<%@page import="po.news.*" %>  
<%@page import="java.util.*" %>
    
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新闻列表中心</title>

<%
	String columnName=(String)request.getAttribute("columnName");
	ArrayList array = (ArrayList)request.getAttribute("newsList");
%>

</head>
<body><div align="center"><h2> 
 
<%=columnName %> 
</h2></div>
<table border="1px" cellspacing="0" cellpadding="10" align=center width="90%" bgColor=#E4E8EF>
<tr bgcolor="#76ae40">
<th width="10%">新闻编号</th>
<th width="50%">新闻标题</th>
<th width="20%">作者</th>
<th width="20%">日期</th>
</tr>
<%
	for(int i = 0; i < array.size(); i++)
	{
    	Newst news = (Newst)array.get(i);
%>
<tr>
  <td>
		<%=news.getNewsId()%>
  </td>
  <td>
  		<a href="newsContent.do?newstId=<%=news.getNewsId()%>" target="_top"><%=(String)news.getTitle()%></a>
  </td>
  <td>
  		<%= news.getAuthor() %>
  </td>
  <td>
  		<%= news.getTime() %>
  </td>
</tr>
<%}%>

</table>

</body>
</html>

⌨️ 快捷键说明

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