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

📄 article.jsp

📁 jsp学习 jsp编程白例源代码此部分是指文件夹名为第1~9章中的内容(如表1)
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="incoming/common.jsp"%>
<%@ include file="incoming/connectdb.jsp"%>

<html><head>
<title><%=title%></title>
<link href="incoming/style.css" rel="stylesheet" type="text/css">
<body bgcolor="#CCCCCC"  text=#000000 leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
<table height="710" cellSpacing=0 cellPadding=0 width=700 align=center 
border=0>
  <tbody>
    <tr> 
      <td height="710" vAlign=top> 
        <table height=66 cellSpacing=0 cellPadding=0 width=775 border=0>
          <tbody>
            <tr> 
              <td colSpan=4 height=66> <div align=right> 
                  <table width=774 height="60" 
              border=0 align=center cellpadding=0 cellspacing=0>
                    <tbody>
                      <tr> 
                        <th height="60" bgcolor="#FFFFFF">
                        <font size="+6" face="隶书" color="#000000"><%=title%></font></th>
                      </tr>
                    </tbody>
                  </table>
                  <table cellSpacing=0 cellPadding=0 width=774 align=center  border=0>
                    <tbody>
                      <tr> 
                        <td bgColor=#990033  height=5></td>
                      </tr>
                    </tbody>
                  </TABLE>
                </div></td>
            </tr>
          </tbody>
        </table>
        <table height=600 cellSpacing=0 cellPadding=0 width=774 align=center 
      bgColor=#FFFFFF border=0>
          <tbody>
            <tr align="center"> 
<%
	int id =(null==request.getParameter("id")?1:(Integer.parseInt(request.getParameter("id"))));
	sql="SELECT * FROM article WHERE ID="+id+"";
	rs = smt.executeQuery(sql);
	rs.next();
%>
              <td vAlign=bottom width=13 height=600>&nbsp; </td>
              <td vAlign=top width=749 height=600> <table width=749 height="654" border=0 cellpadding=0 cellspacing=0>
                  <tbody>
                    <tr> 
                      <td width=749 height="76" align="center" class="title"><b><b> 
                        <%=rs.getString("TITLE")%> <hr align="center" width="50%" noshade > 
                      </td>
                    </tr>
                    <tr> 
                      <td height="506" valign="top" class="body"><%=rs.getString("BODY")%></td>
                    </tr>
                    <tr> 
                      <td height="72" valign="top">&nbsp;</td>
                    </tr>
                  </tbody>
                </table></TD>
              <td vAlign=top width=12>&nbsp;</td>
            </tr>
         </tbody>
        </table> </td>
    </tr>
  </tbody>
</table>
</body>
</html>

⌨️ 快捷键说明

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