Unable to compile class for JSP,急!!!在线等待!!! 20
<%@pagecontentType="text/html;charset=gb2312"language="java"errorPage=""%><%@pageimpo...
<%@page contentType="text/html; charset=gb2312" language="java" errorPage="" %><%@page import="com.kingdee.bos.ebgateway.bankservice.server.asynchronous.*"%>
<%@page import="java.util.HashMap"%><html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>线程信息</TITLE>
<link href="css/tablecloth_files/tablecloth/tablecloth/tablecloth.css" rel="stylesheet" type="text/css"/>
</HEAD>
<BODY>
<%
HashMap hm = TaskManager.getTaskGroup();
%>
</BODY>
</html>
package com.kingdee.bos.ebgateway.bankservice.server.asynchronous;
public class TaskManager {
private static HashMap<String, BankTaskGroup> taskGroup = new HashMap<String, BankTaskGroup>();
public static HashMap<String, BankTaskGroup> getTaskGroup() {
return taskGroup;
}
}
注:BankTaskGroup、TaskManager类都在com.kingdee.bos.ebgateway.bankservice.server.asynchronous包中。
运行时,会报下列异常:
HTTP ERROR: 500Unable to compile class for JSP
An error occurred at line: 12 in the jsp file: /state.jsp
Generated servlet error:
BankTaskGroup cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /state.jsp
Generated servlet error:
TaskManager cannot be resolved
RequestURI=/manage/jsp/state.jsp 展开
<%@page import="java.util.HashMap"%><html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>线程信息</TITLE>
<link href="css/tablecloth_files/tablecloth/tablecloth/tablecloth.css" rel="stylesheet" type="text/css"/>
</HEAD>
<BODY>
<%
HashMap hm = TaskManager.getTaskGroup();
%>
</BODY>
</html>
package com.kingdee.bos.ebgateway.bankservice.server.asynchronous;
public class TaskManager {
private static HashMap<String, BankTaskGroup> taskGroup = new HashMap<String, BankTaskGroup>();
public static HashMap<String, BankTaskGroup> getTaskGroup() {
return taskGroup;
}
}
注:BankTaskGroup、TaskManager类都在com.kingdee.bos.ebgateway.bankservice.server.asynchronous包中。
运行时,会报下列异常:
HTTP ERROR: 500Unable to compile class for JSP
An error occurred at line: 12 in the jsp file: /state.jsp
Generated servlet error:
BankTaskGroup cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /state.jsp
Generated servlet error:
TaskManager cannot be resolved
RequestURI=/manage/jsp/state.jsp 展开
展开全部
12 in the jsp file: /state.jsp这里面已经说的很清楚是12行出错,你这个页面第十二行是什么?
追问
HashMap hm = TaskManager.getTaskGroup();
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询