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

📄 discardsearchpro.jsp

📁 《jsp案例开发》这本书的源代码。包括源代码和相关的具体配置操作步骤。非常不错
💻 JSP
字号:
<%@ page    language="java"    contentType="text/html; charset=GBK"    import="imis.*,javax.naming.*,javax.rmi.PortableRemoteObject,java.util.*,java.sql.*,java.io.*"%><%    request.setCharacterEncoding("GBK");    session=request.getSession();    userStruct session_us=(userStruct)session.getAttribute("user");    if(session_us==null){    response.sendRedirect("../../login.html");    }else if(session_us.userAccess.intValue()!=0&&session_us.userAccess.intValue()!=1){      try{        Context disctx=new InitialContext();        Object disref=disctx.lookup("DiscardController");        DiscardControllerHome discardControllerHome=(DiscardControllerHome) PortableRemoteObject.narrow(disref,DiscardControllerHome.class);        DiscardController discardController=discardControllerHome.create();        Collection collect=new ArrayList();       // Collection sel_collect=new ArrayList();        Collection tr=new ArrayList();        String name = request.getParameter("name") ;String kinds = request.getParameter("kinds") ;String unit = request.getParameter("unit") ;    if(!name.equals("")){      collect = discardController.getRecordByName(name);    }else if(!kinds.equals("")){      collect = discardController.getRecordByKinds(kinds);    }else if(!unit.equals("")){      collect = discardController.getRecordByUnit(unit);    }else{      collect = discardController.getRecordAll();    }    session.setAttribute("discardcollect",collect);    response.sendRedirect("discardsearch.jsp");      }      catch(Exception e){          e.printStackTrace();      }    }else{      response.sendRedirect("../../error/access.html");    }    %>

⌨️ 快捷键说明

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