你的问题据我所知有2个种可能的结果。一种是:你没有在JSP中导入Book类。第二种是Book类出现了问题,你的Book是否是public或者你可以尝试在WEB-INF/classes是否能找到Book类。祝你好运。下面附上我在google中看到的一片文章1 package p1;23 class A {4 }Class A is in package p1 and have default (also known as package private) visibility. 1 package p2;23 public class B {4 public static void main(String[] args) {5 A a = new A();6 }7 }Class B is in another package (not the same as class A). You get error in class B (line 5): The type p1.A is not visible |