processdelete.jsp

来自「07年做得人力资源管理系统」· JSP 代码 · 共 33 行

JSP
33
字号
<%@ page language="java" import="com.buat.hr.institution.InstitutionDAO" pageEncoding="GB18030"%>
<%  
    int id=0;
	String idstr=null;
	idstr=request.getParameter("id");
	try{
	       id=Integer.parseInt(idstr);
	}catch(Exception e){
    }
    InstitutionDAO dao=new InstitutionDAO();
    boolean successful=dao.deleteInstitution(id);
    String message="Congratulations!删除信息成功!";
    if(successful==false)
        message="Sorry!删除信息失败!";

%>

<html>
  <head>
  </head>
 
  <body background="../bg.jpg">  
  <script type="text/javascript">
     window.alert("<%=message %>")
     <%  if(message.equals("Congratulations!删除信息成功!")){
     %>
            window.location.href="Scan.jsp";
     <%}%>
   </script>

  </body>
</html>

⌨️ 快捷键说明

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