deletearticle_do.jsp
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:1k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK" import="java.sql.*,java.lang.*" %>
- <%request.setCharacterEncoding("gbk"); %>
- <jsp:useBean id="sql" scope="page" class="control.sqlcontrol" />
- <html>
- <head>
- <title>
- deletearticle_do
- </title>
- </head>
- <body bgcolor="#ffffff">
- <%try{
- sql.getSQL2005conn("dbconfig.xml");
- String id = request.getParameter("deleteid");
- String p = request.getParameter("page");
- String bm = request.getParameter("bm");
- if(bm!=null){
- bm ="?bm="+bm;
- }else{
- bm=" ";
- }
- sql.AutoDeleteUpdate("article","id="+id+"");
- response.sendRedirect(p+".jsp"+bm);
- }catch(Exception ex){
- ex.printStackTrace();
- }
- %>
- </body>
- </html>