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

📄 manumodify_deal.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();    ManufactureJBean manuinfo = (ManufactureJBean)session.getAttribute("manuinfo") ;    //String manufactureid=manuinfo.manufacturer_id ;    userStruct user=(userStruct)session.getAttribute("user");    if(user==null){      response.sendRedirect("../../login.html");    }    else{       if(user.userAccess.equals(new Integer(9)))       {%><%try{    ManufactureJBean manuTomodify = null;    manuTomodify = new ManufactureJBean();   // manuTomodify.manufacturer_id  = request.getParameter("manuid") ;    //ManufactureJBean manuinfo = (ManufactureJBean)session.getAttribute("manuinfo") ;    String manuid = manuinfo.manufacturer_id;    manuTomodify.manufacturer_id = manuid;    manuTomodify.name = request.getParameter("manuname") ;    manuTomodify.address = request.getParameter("manuaddress") ;    manuTomodify.communicate = request.getParameter("manucommunicate") ;    manuTomodify.product = request.getParameter("manuproduct") ;    manuTomodify.cop = request.getParameter("manucop") ;    manuTomodify.evaluate =request.getParameter("manuevalue") ;    manuTomodify.aftersale = request.getParameter("manuaftersale") ;    manuTomodify.introduce = request.getParameter("manuintroduce") ;    manuTomodify.unitid = user.unitid ;    %><%   boolean blnSucc;   Context ctx = new InitialContext();   Object ref = ctx.lookup("OtherController");   OtherControllerHome otherControllerHome = (OtherControllerHome) PortableRemoteObject.narrow(ref, OtherControllerHome.class);   OtherController othercontroller = otherControllerHome.create();   blnSucc = othercontroller.editManufacture(manuid,manuTomodify) ;   response.sendRedirect("manulist.jsp") ;   %><%       }    catch(Exception e){       e.printStackTrace() ;   }       }   else{//quan xian wenti      response.sendRedirect("../../error/access.html");   }       }  %>

⌨️ 快捷键说明

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