帮我看看这个程序为什么没响应

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.sql.*"%>
<%@ page import="javax.sql.*"%>
<%@ page import="javax.naming.*"%>
<%@ page import="javax.servlet.*"%>
<%@ page import="java.util.concurrent.ConcurrentHashMap"%>
<%@ page import="com.essa.util.BusinessSqlContainer"%>

<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="java.util.Map"%>

<%

          Map<String, String> tempMap = new HashMap<String, String>(); 

            tempMap.put("11111111", "null");  
            tempMap.put("22222222", "null");   
            tempMap.put("33333333", "null");
            tempMap.put("44444444", "null");
            tempMap.put("55555555", "null");
            tempMap.put("66666666", "null");

          Iterator it = tempMap.entrySet().iterator(); 
          while (it.hasNext()) {   
               Map.Entry entry = (Map.Entry) it.next();
               Object key = entry.getKey();  
               Object value = entry.getValue();  
           out.println("key=" + key + " value=" + value); 

           //连接数据源
           DataSource ds = (DataSource)application.getAttribute("dataSource");  
          //获得普通教师基本信息
          ConcurrentHashMap<String ,Object> tempGetTeacherObject = (ConcurrentHashMap<String ,Object>)application.getAttribute("TeacherMap");

       ConcurrentHashMap<String ,String> tempTeacherObject =(ConcurrentHashMap<String ,String>) tempGetTeacherObject.get(key);
       out.println(tempTeacherObject.get("EJDWQC")) <br> ; 

         }   

%>

查看全部
libolin1230
libolin1230
2015/08/07 07:23
  • iterator
  • java
  • 点赞
  • 收藏
  • 回答
    私信

2个回复