📄 accountdel.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GBK" import="imis.*,javax.naming.*,javax.rmi.PortableRemoteObject,java.util.*,java.text.*"%><% request.setCharacterEncoding("GBK"); session=request.getSession(); userStruct user=(userStruct)session.getAttribute("user"); String deviceid = (String)session.getAttribute("inaccountde"); if(user==null){ response.sendRedirect("../../login.html"); } else if(user.userAccess.equals(new Integer(3))||user.userAccess.equals(new Integer(4))||user.userAccess.equals(new Integer(5))||user.userAccess.equals(new Integer(6))||user.userAccess.equals(new Integer(7))||user.userAccess.equals(new Integer(11))){ try{ Context ctx = new InitialContext(); Object ref = ctx.lookup("OtherController"); OtherControllerHome otherControllerHome = (OtherControllerHome) PortableRemoteObject.narrow(ref, OtherControllerHome.class); OtherController othercontroller = otherControllerHome.create(); InaccountJBean instruct = new InaccountJBean(); instruct = othercontroller.getInaccountByDeviceid(deviceid); boolean ok = false; ok = othercontroller.removeInaccount(instruct.device_id); if(ok){ response.sendRedirect("accountlist.jsp"); }else{ response.sendRedirect("../../error/deleteerror.html"); } } catch(Exception e){ e.printStackTrace(); response.sendRedirect("../../error/deleteerror.html"); } }else{ response.sendRedirect("../../error/accesserror.html"); }%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -