?? del.jsp
字號:
<%@page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<jsp:useBean id="wu" scope="page" class="wu.jdbc" />
<body>
<%
String login = (String)session.getAttribute("login") ;
if(login==null){
out.println("您不是管理員!不能登陸刪除");
}else{
Connection con = wu.getConn() ;
Statement stmt = con.createStatement() ;
String id = request.getParameter("id") ;
String sql = "delete from liuyan_temp where id="+id ;
stmt.executeUpdate(sql) ;
try {
stmt.close();
con.close();
}
catch (Exception ex) {
}
response.sendRedirect("ly.jsp");
}
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -