processdelete.jsp
来自「07年做得人力资源管理系统」· JSP 代码 · 共 47 行
JSP
47 行
<%@ page language="java" import="com.buat.hr.users.User,com.buat.hr.users.UserDao,javax.swing.*" pageEncoding="GB18030"%>
<%
String strId=null;
int id=0;
String massage=null;
strId=request.getParameter("id");
try{
if(!strId.equals(null)){
id=Integer.parseInt(strId);
}
}catch(Exception e){}
UserDao udao=new UserDao();
User user=null;
boolean flags=udao.deleteUserByid(id);
%>
<html>
<head>
<title></title>
</head>
<body background="../bg.jpg">
<center>
<%
if(flags==true){
%>
<script type="text/javascript">
window.alert("删除成功!!!");
window.location.href("Scan.jsp");
</script>
<%
}
else{
%>
<script type="text/javascript">
window.alert("删除失败!!!");
window.location.href("Scan.jsp");
</script>
<%
}
%>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?