当前位置: 网站首页 > WEB > jsp

利用JSP建立Web站点

时间:1970-1-1 08:33:31来源: jsp作者:admin 点击:0次 字体 [ С]

   out.println("Connection 连接失败!\n");

   }

   TRSRS = TRSConn.executeSelect(dbname,s1,"","", null, 0, 0, false);

  // 执行查询操作,生成记录集

   } catch(TRSException TRSe) {

   out.println("ResultSet 连接失败!\n");

   }

  try {

   TRSRS.moveFirst();

  //记录定位

  %>

  <p>

  <center>

  <table width=80%>

  <tr align=center>

  <td><%=TRSRS.getString("标题")%>

  </td>

  </tr>

  <tr align=center>

  <td><%=TRSRS.getString("日期")%>

  </td>

  </tr>

  <tr>

  <td><%=TRSRS.getString("内容")%>

  </td>

  </tr>

  </table>

  </center>

  <p>

  <%

  TRSRS.close();

  } catch(TRSException TRSe) {}

  %>

  </body>

  </html>

发表评论
验证码:
最新评论
相关文章
最热文章