正在调试一个书上例子,出错信息如下:
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
D:\Tomcat\work\Catalina\localhost\_\org\apache\jsp\WebRoot\showAttackSolution_jsp.java:6: 软件包 struts.sample.cap13.sample1.entity 不存在
import struts.sample.cap13.sample1.entity.AttackSolution;
^
An error occurred at line: 55 in the jsp file: /WebRoot/showAttackSolution.jsp
Generated servlet error:
D:\Tomcat\work\Catalina\localhost\_\org\apache\jsp\WebRoot\showAttackSolution_jsp.java:175: 软件包 struts.sample.cap13.sample1.entity 不存在
struts.sample.cap13.sample1.entity.AttackSolution attackSolution = null;
^
An error occurred at line: 55 in the jsp file: /WebRoot/showAttackSolution.jsp
Generated servlet error:
D:\Tomcat\work\Catalina\localhost\_\org\apache\jsp\WebRoot\showAttackSolution_jsp.java:181: 软件包 struts.sample.cap13.sample1.entity 不存在
attackSolution = (struts.sample.cap13.sample1.entity.AttackSolution) _jspx_page_context.findAttribute( "attackSolution ");
^
Generated servlet error:
D:\Tomcat\work\Catalina\localhost\_\org\apache\jsp\WebRoot\showAttackSolution_jsp.java:212: 软件包 struts.sample.cap13.sample1.entity 不存在
attackSolution = (struts.sample.cap13.sample1.entity.AttackSolution) _jspx_page_context.findAttribute( "attackSolution ");
^
注意:D:\Tomcat\work\Catalina\localhost\_\org\apache\jsp\WebRoot\showAttackSolution_jsp.java 使用了未经检查或不安全的操作。
注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。