JSP error: Only a type can be imported

时间:2021-02-16 10:54:44

错误:

[14] in the generated java file: [E:\apache-tomcat-7.0.63-windows-x64\apache-tomcat-7.0.63\work\Catalina\localhost\bbs\org\apache\jsp\MyJsp_jsp.java] Only a type can be imported. javax.jms.Session re

问题原因:在JSP文件中,<%@page import="javax.jms.Session" %>   删去即可!