📄 del1.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="mfkvit.JdbcBean" %>
<%@ page import="mfkvit.login" %>
<jsp:useBean id="login" class="mfkvit.login" scope="session">
</jsp:useBean>
<%
if(session.isNew()){response.sendRedirect("index.jsp");}
String success=login.getSuccess();
if(success==null){success="";}
if(!(success.equals("ok"))){response.sendRedirect("index.jsp");}
%>
<% JdbcBean jdbc=new JdbcBean();
request.setCharacterEncoding("gb2312");
String sc=request.getParameter("id");
String condition;
try {
if(sc!=null)
{ condition="delete from customerMessage where id="+ sc;
System.out.print(condition);
jdbc.execUpdate(condition);
response.sendRedirect("customerMessage.jsp");
}
response.sendRedirect("customerMessage.jsp");
}
catch (Exception ex) { ex.printStackTrace(); }
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -