兄弟们救命啊。。。。
ydpy 2004-02-21 04:50:03
我的搭配(tomcat4.1+j2sdk1.4.1) girl是设置的ID名字
.class文件放在tomcat\webapps\examples\webinf\classes下面
可是在做jsp+javabean的时候 浏览器显示:
C:\Tomcat4.1\work\Standalone\localhost\examples\example_jsp.java:7: '.' expected
import circleTest;
^
C:\Tomcat4.1\work\Standalone\localhost\examples\example_jsp.java:46: cannot resolve symbol
symbol : class circleTest
location: class org.apache.jsp.example_jsp
circleTest girl = null;
^
An error occurred at line: 4 in the jsp file: /example.jsp
Generated servlet error:
C:\Tomcat4.1\work\Standalone\localhost\examples\example_jsp.java:48: cannot resolve symbol
symbol : class circleTest
location: class org.apache.jsp.example_jsp
girl = (circleTest) pageContext.getAttribute("girl", PageContext.PAGE_SCOPE);
^
An error occurred at line: 4 in the jsp file: /example.jsp
Generated servlet error:
C:\Tomcat4.1\work\Standalone\localhost\examples\example_jsp.java:51: cannot resolve symbol
symbol : class circleTest
location: class org.apache.jsp.example_jsp
girl = (circleTest) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "circleTest");
^
4 errors
请兄弟们指点下哪里出错了(英语比较菜)。。。。
谢谢了