【JSP开源代码栏目提醒】:网学会员鉴于大家对JSP开源代码十分关注,论文会员在此为大家搜集整理了“watchNews.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"> </td>
</tr>
<tr>
<td background="jsp/images/tiao1.jpg"> </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>