JSP HASHMAP无法输出问题,急待解决谢谢
<%@pagecontentType="text/html;charset=GB2312"%><%@pageimport="java.sql.*"%><%@pageimp...
<%@ page contentType="text/html; charset=GB2312" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*;" %>
<%@ page language="java" %>
<HTML>
<body>
<%
request.setCharacterEncoding("gb2312");
Map a=(HashMap)session.getAttribute("aa");
Iterator it=null;
it = a.entrySet().iterator();
while(it.hasNext()){
Map.Entry item = (Map.Entry)it.next();
String k = (String)item.getKey();
String v = (String)item.getValue();
out.println(k + " " + v);
}
%>
</BODY>
</HTML>
输出org.apache.jasper.JasperException: An exception occurred processing JSP page /lefthref/cdetailinfo.jsp at line 14
为什么 展开
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*;" %>
<%@ page language="java" %>
<HTML>
<body>
<%
request.setCharacterEncoding("gb2312");
Map a=(HashMap)session.getAttribute("aa");
Iterator it=null;
it = a.entrySet().iterator();
while(it.hasNext()){
Map.Entry item = (Map.Entry)it.next();
String k = (String)item.getKey();
String v = (String)item.getValue();
out.println(k + " " + v);
}
%>
</BODY>
</HTML>
输出org.apache.jasper.JasperException: An exception occurred processing JSP page /lefthref/cdetailinfo.jsp at line 14
为什么 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询