标题:一个关于"符号: 类 Vector"的问题
取消只看楼主
xqiang
Rank: 1
等 级:新手上路
帖 子:291
专家分:0
注 册:2006-2-23
 问题点数:0 回复次数:1 
一个关于"符号: 类 Vector"的问题

我刚学JAVA,所以就看着书来学,
可是最后还是出错了
有没有人可以帮我看看这是什么问题?
怎么解决?
谢谢!!!

有点长,不好意思



HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 6 in the jsp file: /guestbook.jsp
Generated servlet error:
C:\Documents and Settings\Administrator\.netbeans\5.0\jakarta-tomcat-5.5.9_base\work\Catalina\localhost\MyWeb\org\apache\jsp\guestbook_jsp.java:62: 找不到符号
符号: 类 Vector
位置: 类 org.apache.jsp.guestbook_jsp
Vector vResult=guestbook.getList("");
^


An error occurred at line: 39 in the jsp file: /guestbook.jsp
Generated servlet error:
C:\Documents and Settings\Administrator\.netbeans\5.0\jakarta-tomcat-5.5.9_base\work\Catalina\localhost\MyWeb\org\apache\jsp\guestbook_jsp.java:99: 找不到符号
符号: 类 Vector
位置: 类 org.apache.jsp.guestbook_jsp
Vector row = (Vector)vResult.elementAt(i);
^


An error occurred at line: 39 in the jsp file: /guestbook.jsp
Generated servlet error:
C:\Documents and Settings\Administrator\.netbeans\5.0\jakarta-tomcat-5.5.9_base\work\Catalina\localhost\MyWeb\org\apache\jsp\guestbook_jsp.java:99: 找不到符号
符号: 类 Vector
位置: 类 org.apache.jsp.guestbook_jsp
Vector row = (Vector)vResult.elementAt(i);
^
3 错误

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:246)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.9


搜索更多相关主题的帖子: Vector JAVA 符号 The jasper 
2006-07-18 13:44
xqiang
Rank: 1
等 级:新手上路
帖 子:291
专家分:0
注 册:2006-2-23
得分:0 
自己找到了,
忘记加上这个东东了
<%@ page import="java.util.*" %>

呵呵!!1

相信自己可以的!!! http://www.
2006-07-18 17:42



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-78982-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.067842 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved