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

📄 renwu.jsp

📁 JSP+ORACLE网站开发实例(下).rar
💻 JSP
字号:
<%@ include file="conn.jsp"%>
<%String id=request.getParameter("id"); 
String sql1="select  classid,title,content,picurl,writefrom,addtime from scott.article where articleid='"+id+"'"; 
ResultSet rs=stmt1.executeQuery(sql1); 
 if(rs.next()){  
	 %>
<html>
<head>
<title>新闻网</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="images/css.css" rel=stylesheet type=text/css>
<style type="text/css">
<!--
body {
	background-image: url(images/pagebg1.gif);
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
</head>
<body>
<table width="780" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#CACACA">
  <tr>
    <td bgcolor="#FFFFFF"><%@ include file="top.inc"%>
    <table width="780" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="171" valign="top" bgcolor="F7EEE4"><%@ include file="left.inc"%>          </td>
          <td width="609" valign="top"><table width="580" border="0" align="center" cellpadding="5" cellspacing="5">
            <tr>
              <td width="590" colspan="2"><img src="images/deng<%if(rs.getString("classid").equals("20")){out.print("2");}else{out.print(rs.getString("classid"));}%>.gif" width="580" height="60"></td>
            </tr>
          </table>            <br>            <table width="570"  border="0" align="center" cellpadding="4" cellspacing="4">
            <tr>
                <td class="txt5"><%=rs.getString("title")%></td>
            </tr>
            <tr>
              <td class="txt1"><img src=<%=rs.getString("picurl")%> width='120' hspace='6' vspace='3' border='0' align='left'><%=rs.getString("content")%></td>
            </tr>
            </table>
</td>
        </tr>
      </table>
     <%@ include file="end.inc"%></td>
  </tr>
</table>
</body>
</html>
<%
 }
  rs.close(); 
  stmt1.close();
  conn.close(); 
%>

⌨️ 快捷键说明

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