兄弟们救命啊。。。。

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

请兄弟们指点下哪里出错了(英语比较菜)。。。。
谢谢了
...全文
28 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧