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

📄 handtakelist.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()!=5&&user.userAccess.intValue()!=6&&user.userAccess.intValue()!=7&&user.userAccess.intValue()!=9)          response.sendRedirect("../../error/access.html");  else{  %>  <%    Collection collect=new ArrayList();     HandtakeJBean hjb =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.getHandAll(); // System.out.println(c.size());                Iterator i=c.iterator();                Judge jd=new Judge();                while(i.hasNext())                              {                            hjb=new HandtakeJBean();                            hjb=(HandtakeJBean)i.next();                            if(jd.decide(user.unitid,hjb.unitid)){                               collect.add(hjb);                             }} // System.out.println(collect.size());  session.setAttribute("handtc",collect);  String tag = request.getParameter("tag");  if(tag==null)  response.sendRedirect("handtakelisted.jsp");  else  response.sendRedirect("handreportlisted.jsp");%>  <%}%>

⌨️ 快捷键说明

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