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

📄 watchnews.jsp

📁 新闻网(news) 带使用说明书 可以用作课程设计
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.List"%>
<%@ page import="com.victor.domain.NewsActionForm"%>
<%@ page import="com.victor.tool.Chinese"%>
<html>
<head>
<title>前台显示新闻</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
}
td{
font-size:9pt;
}
-->
</style></head>
<%Chinese chinese=new Chinese();%>
<body>
<table width="570" height="740"  border="0" align="left" cellpadding="2" cellspacing="1" bgcolor="#999999">
  <tr>
    <td width="571" height="100" align="center" valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="35">&nbsp;</td>
      </tr>
      <tr>
        <td background="jsp/images/tiao1.jpg">&nbsp;</td>
      </tr>
    </table>
	  <br>	  <font style="font-size:11pt; "><%=chinese.str(request.getParameter("type"))%>新闻
    <br>
    <br>  
    <table width="464" border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
    <tr align="center" bgcolor="#0099cc">
      <td width="113" height="20">新闻题目</td>
      <td width="113">新闻详细类别</td>
      <td width="196">操作</td>
    </tr>
<%List list=(List)request.getAttribute("listNew");%>
<%for(int i=0;i<list.size();i++)
{ NewsActionForm newsAction=(NewsActionForm)list.get(i);
%>
    <tr bgcolor="#FFFFFF">
      <td height="24"><%=newsAction.getNewTitle()%></td>
      <td><%=newsAction.getNewsStyle()%></td>
      <td align="center"><a href="newContentNext.do?newsID=<%=newsAction.getNewID()%>&type=<%=chinese.str(request.getParameter("type"))%>&title=<%=newsAction.getNewTitle()%>">查看新闻的详细内容</a></td>
    </tr><%}%>
  </table>
  </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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