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

📄 checkreportlist.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 user=(userStruct)session.getAttribute("user");    if(user==null){    response.sendRedirect("../../login.html");    }  else if(user.userAccess.intValue()!=12 &&user.userAccess.intValue()!=9)          response.sendRedirect("../../error/access.html");  else{  %>  <%  Collection collect=new ArrayList();  CheckReportJBean crj=null;    Context ctx=new InitialContext();             Object ref=ctx.lookup("HandtakeController");             HandtakeControllerHome handtakeControllerHome=(HandtakeControllerHome) PortableRemoteObject.narrow(ref,HandtakeControllerHome.class);             HandtakeController handtakeController = handtakeControllerHome.create();             Collection c=new ArrayList();             c=handtakeController.getCheckAll();             Iterator i=c.iterator();             Judge jd=new Judge();             while(i.hasNext())              {            crj=new CheckReportJBean();            crj=(CheckReportJBean)i.next();            if(jd.decide(user.unitid,crj.unitid))               collect.add(crj);             }  session.setAttribute("checkrc",collect);  response.sendRedirect("checkreportlisted.jsp");  %>  <%}%>

⌨️ 快捷键说明

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