deleuser.jsp
来自「一个简单实用的网上书城,可当作原型使用」· JSP 代码 · 共 40 行
JSP
40 行
<%@page contentType="text/html"%><%@page pageEncoding="gbk"%><%--The taglib directive below imports the JSTL library. If you uncomment it,you must also add the JSTL library to the project. The Add Library... actionon Libraries node in Projects view can be used to add the JSTL 1.1 library.--%><%--<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> --%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><script language="Javascript">function Timer(){setTimeout("self.close()",2500)}</script><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>删除用户</title> </head> <body onload="Timer()"> <h1>删除用户</h1> <jsp:useBean id="user" class="czm.User" scope="page"/> <% user.ID=request.getParameter("UserID").toString().trim(); if(user.DeleteUser()) { %>删除成功<% } else { %>删除失败<% } %> <p>(本页于2.5s内自动关闭)</p> </body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?