⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄

📁 一些jsp源代码 内含完整jsp程序 希望大家喜欢!!!!!!!!!!!!!!!!!!!1
💻
字号:
范例manager_user_delete.jsp源代码
001<%@page contentType="text/html;charset=Gb2312" 
002  import="Java.sql.*,Java.util.Date"%>
003<JSP:useBean id="pool" scope="application" class="com.PoolBean"/>
004<%	
005String strLoginUser = (String)session.getAttribute("LoginUser");
006if (strLoginUser == null || strLoginUser.length() == 0)	
007	response.sendRedirect("../Login.jsp");	
008%>
009<html>
010<head>
011  <title>用户删除</title>
012</head>
013<body>
014<center>
015 <font size=5 color=blue></font>用户删除</font>
016</center>
017<hr>
018<%
019try
020  {
021    String code = request.getParameter("code");	
022 	if (pool.getConnectionSize() == 0)
023	{
024		pool.initializePool();
025	}	
026	Connection con = null;
027	Statement stmt = null;
028	con = pool.getConnection();
029	stmt= con.createStatement();
030	String strDel ="delete from user where code='"+code+"'";	
031	stmt.executeUpdate(strDel);
032	stmt.close();//关闭Statement对象
033	pool.releaseConnection(con);
034	response.sendRedirect("manager_user.jsp");
035  }
036   catch (Exception e)
037  {
038     out.println(e.getMessage());
039  }
040 %>
041</body>
042</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -