⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xgpl.jsp

📁 基于jsp-servlet-bean结构开发的,具备新闻发布管理、3级栏目管理、用户管理等功能。注意
💻 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>

⌨️ 快捷键说明

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