watchnews.jsp~8~

来自「jsp技术 基于struts框架的新闻发布系统」· JSP~8~ 代码 · 共 37 行

JSP~8~
37
字号
<%@ page contentType="text/html; charset=GBK" %>
<%@ 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>
</head>
<%Chinese chinese=new Chinese();%>
<body bgcolor="#ffffc0">
<div align="center">
  <p><%=chinese.str(request.getParameter("type"))%></p>
  <p>&nbsp;</p>
  <table width="464" border="3" cellspacing="3" cellpadding="3">
    <tr>
      <td width="113">新闻题目</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>
      <td><%=newsAction.getNewTitle()%></td>
      <td><%=newsAction.getNewsStyle()%></td>
      <td>查看新闻的详细内容</td>
    </tr><%}%>
  </table>
  <p>&nbsp;</p>
</div>
<h1>&nbsp;</h1>
</body>

</html>

⌨️ 快捷键说明

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