⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 submodified.jsp

📁 《jsp案例开发》这本书的源代码。包括源代码和相关的具体配置操作步骤。非常不错
💻 JSP
字号:
<%@ 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){%><%System.out.println("111111");officeUnitStruct ous = new officeUnitStruct();try{  Context ctx = new InitialContext();System.out.println("2222222");  Object ref = ctx.lookup("OfficeUnitController");System.out.println("333333333");  OfficeUnitControllerHome officeUnitControllerHome = (OfficeUnitControllerHome) PortableRemoteObject.narrow(ref, OfficeUnitControllerHome.class);System.out.println("4444444");  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();System.out.println("5");       Integer unitid = (Integer)session.getAttribute("subunitid");System.out.println("6");       //Integer unitid = new Integer(id);System.out.println("7");       Collection collect = new ArrayList();System.out.println("8");       collect = officeUnitController.getUnitid(unitid);System.out.println("9");       Iterator ii = collect.iterator();System.out.println("10");       while(ii.hasNext()){           ous = (officeUnitStruct)ii.next();       }       String processname = request.getParameter("processname");       String unitremark = request.getParameter("unitremark");       ous.processname = processname;       ous.unitremark = unitremark;     boolean ok = false;     ok = officeUnitController.edit(unitid,ous);     if(ok){         response.sendRedirect("submodifysuccess.html");     }}catch(Exception e){e.printStackTrace();response.sendRedirect("../../error/adderror.html"); }%><%}else{    response.sendRedirect("../../error/accesserror.html");}%>

⌨️ 快捷键说明

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