最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
jsp分页程序代码
时间:2009-09-11 编辑:简简单单 来源:一聚教程网
jsp分页程序代码
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@include file ="../inc/ChkPwd.jsp"%>
<%@include file="../DB.jsp"%>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
css" />
--内容管理 | |||||||||
| <% String op; String ID = request.getParameter("id"); op = request.getParameter("op"); if(op==null){ op = "my"; } if (op.equals("del") && ID!=null){ String bbb = new String(request.getParameter("BigClassName").getBytes("iso8859_1")); Statement stmt_ChannelDEL=conn.createStatement(); String Sqldel="delete from hl_news where id=" + ID; int shan=stmt_ChannelDEL.executeUpdate(Sqldel); if (shan>0) { out.print(""); } stmt_ChannelDEL.close(); return ; } Statement stmtA=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); String SqlA="Select * from hl_smallclass WHERE bigname='行业新闻' order by id asc"; ResultSet RsA=stmtA.executeQuery(SqlA); while (RsA.next()) { %> <%=RsA.getString("smallname")%> | <% } RsA.close(); //关闭记录集对象 stmtA.close(); //关闭语句对象 %> | |||||||||
<%
RsArticle.close();
stmt_Article.close();
conn.close();
%>
-
上一个: jsp图片文件上传代码
-
下一个: jsp 数据库连接查询类代码
相关文章
- jsp 分页程序代码 09-29
- jsp分页程序 04-12
- SpringBoot测试配置属性与web启动环境解析 10-24
- vue中将el-switch值true、false改为number类型的1和0解析 10-24
- Vue中的路由配置项meta使用解读 10-24
- SpringBoot自定义bean绑定解析 10-24