【JSP开源代码栏目提醒】:网学会员--在 JSP开源代码编辑为广大网友搜集整理了:xgpl.jsp绩等信息,祝愿广大网友取得需要的信息,参考学习。
<%@ page language="java" contentType="text/html; charset=GB2312" pageEncoding="GB2312"%>
<%@page import="com.ideas.util.*,java.util.*,com.ideas.bean.DealString"%>
<jsp:useBean id="myBean" scope="page" class="com.ideas.bean.commentBean"/>
<%
DealString ds = new DealString();
String articleid = (String)request.getParameter("articleid");
articleid = articleid.substring(articleid.lastIndexOf('/')+1,articleid.length());
//创建数据库连接
if (!myBean.getMyConnPool()) {
out.println("不能获取数据库连接.");
return;
}
Vector vect = myBean.getData(articleid,"1");
myBean.releaseMyConnPool();
%>
<TITLE>新闻发布
系统</TITLE>
<TABLE cellSpacing=0 cellPadding=0 width=616 border=0 valign=top>
<TBODY>
<TR>
<TD><IMG height=1 src="../upload/yzxx_02.gif" width=616></TD></TR>
<TR>
<TD><IMG height=43 src="../upload/yzxx_03.gif" width=616></TD></TR>
<TR>
<TD valign=top>
<TABLE height=323 cellSpacing=0 cellPadding=0 width=616 background=../upload/yzxx_04.gif border=0 valign=top>
<TBODY>
<TR>
<TD valign=top><br>
<TABLE cellSpacing=0 cellPadding=0 width=535 align=center border=0 valign=top>
<TBODY>
<TR>
<TD valign=top>
<TABLE cellSpacing=1 cellPadding=8 width=491 align=center bgColor=#00cc66 border=0 style="
word-break:break-all;">
<TBODY>
<TR align=middle>
<TD width="*" bgColor=#ffffff><font size=2><b>内容</TD>
<TD width="120" bgColor=#ffffff><font size=2><b>发表时间</TD>
<TD width="100" bgColor=#ffffff><font size=2><b>发表人IP</TD>
</TR>
<%
for(int i=0;i<vect.size();i++)
{
Hashtable hash = (Hashtable)vect.get(i);
%>
<TR align=middle>
<TD bgColor=#ffffff><font size=2><%=(String)hash.get("content")%></font></TD>
<TD bgColor=#ffffff><font size=2><%=(String)hash.get("time")%></font></TD>
<TD bgColor=#ffffff><font size=2><%=(String)hash.get("critic")%></font></TD>
</TR>
<%}%>
</TBODY></TABLE>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD><IMG height=42 src="../upload/yzxx_05.gif" width=616></TD></TR></TBODY></TABLE>
<script>
function go()
{
}
</script>