?? subdelhh.jsp
字號(hào):
<%@ page language="java" contentType="text/html; charset=GBK" import="imis.*,javax.naming.*,javax.rmi.PortableRemoteObject,java.util.*"%><% request.setCharacterEncoding("GBK"); session=request.getSession(); userStruct user=(userStruct)session.getAttribute("user"); if(user==null){ response.sendRedirect("../../login.html"); }else if(user.getAccess().intValue()==3||user.getAccess().intValue()==4){%><%officeUnitStruct ous = new officeUnitStruct();try{ Context ctx = new InitialContext(); Object ref = ctx.lookup("OfficeUnitController"); OfficeUnitControllerHome officeUnitControllerHome = (OfficeUnitControllerHome) PortableRemoteObject.narrow(ref, OfficeUnitControllerHome.class); OfficeUnitController officeUnitController=officeUnitControllerHome.create();// Context uctx = new InitialContext();// Object uref = uctx.lookup("UserController");// UserControllerHome userControllerHome = (UserControllerHome) PortableRemoteObject.narrow(uref, UserControllerHome.class);// UserController userController = userControllerHome.create(); String id = request.getParameter("unitid"); Integer idd = new Integer(id); boolean ok = false; ok = officeUnitController.remove(idd); if(ok){ response.sendRedirect("subdelsuccess.html"); }}catch(Exception e){e.printStackTrace();response.sendRedirect("../../error/deleteerror.html"); }%><%}else{ response.sendRedirect("../../error/accesserror.html");}%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -