typenewscontent.jsp

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

JSP
58
字号
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.util.List"%>
<%@ page import="java.sql.*"%>
<%@ 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;
}
.style1 {
	color: #FF9900;
	font-weight: bold;
}
-->
</style></head>

<%List list=(List)request.getAttribute("content");

%>
	<%for(int i=0;i<list.size();i++){
NewsActionForm newsActionForm=(NewsActionForm)list.get(i);
%>
<body>
<table width="568" height="419"   border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
  <tr>
    <td align="center" valign="top" bgcolor="#FFFFFF">
  <p class="style1"><br>
    <br>
    <br>
    <%=Chinese.str(request.getParameter("title"))%></p>
  <table width="459"  border="0" cellpadding="2" cellspacing="1" bgcolor="#0099cc">
    <tr>
      <td height="269" valign="top" bgcolor="#FFFFFF">  <%=newsActionForm.getNewContent()%></td>
    </tr>
  </table> <%}%>
  <p>



  <a href="selectMainAction.do?newstype=<%=Chinese.str(request.getParameter("newstype"))%>"><font style="font-size:9pt">返回</font></a>


  </p></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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