问题描述
- 为什么这个程序没有响应
-
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="java.util.Map"%><%@ 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"%><%
Map tempMap = new HashMap();
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); out.println(key) ; DataSource ds = (DataSource)application.getAttribute("dataSource");
//获得普通教师基本信息
ConcurrentHashMap tempGetTeacherObject = (ConcurrentHashMap) application.getAttribute("TeacherMap");ConcurrentHashMap<String ,String> tempTeacherObject =(ConcurrentHashMap<String ,String>) tempGetTeacherObject.get("key"); out.println(tempTeacherObject.get("UID")) ; } %>
解决方案
你要响应什么啊?问的具体点
时间: 2024-09-25 15:34:57