newsContent_b.jsp
上传用户:jishiqi_cj
上传日期:2022-08-08
资源大小:24765k
文件大小:1k
- <%@ page contentType="text/html;charset=GBK" language="java" %>
- <%@ page import = "StudyNews.*" %>
- <%@ page import = "java.util.*" %>
- <%
- Vector v = (Vector)session.getAttribute(Constants.NEWS_LIST_KEY);
- News DetailNews = (News)session.getAttribute(Constants.NEWS_DETAIL_KEY);
- News Relativenews = null;
- %>
- <html>
- <head>
- <title>新闻</title>
- <link rel="stylesheet" type="text/css" href="news.css">
- </head>
- <div align=center><img src="images/newscast_header.gif" width="407" height="68"></div>
- <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
-
- <tr bgcolor="#FAD185">
- <td height=20 align=center><b><%=DetailNews.getTitle()%></b></td>
- </tr>
- <tr>
- <td valign=top>
- <p>
- <%=DetailNews.getContent()%>
- </tr>
- </table>
- <br><b>相关新闻:</b><ul>
- <%
- if(v != null ){
-
- for(int i = 0;i < v.size();i++)
- {
- Relativenews = (News)v.get(i);
- %>
- <li>
- <A href="newsDetail.do?newsId=<%=Relativenews.getId()%>"><%=Relativenews.getTitle()%></A>
- <%=Relativenews.getTime()%>
-
- <%
- }
- }
- %>
- </ul>
- <div align=center>Study Online版权所有</div>
- </html>