我来我网
https://5come5.cn
 
您尚未 登录  注册 | 菠菜 | 软件站 | 音乐站 | 邮箱1 | 邮箱2 | 风格选择 | 更多 » 
 

本页主题: JSP求救:cannot be resolved to a type 显示签名 | 打印 | 加为IE收藏 | 收藏主题 | 上一主题 | 下一主题

J@Wings



性别: 保密 状态: 该用户目前不在线
头衔: 想淫荡荡不起
等级: 荣誉会员
发贴: 1478
威望: 3
浮云: 437
在线等级:
注册时间: 2004-10-26
最后登陆: 2010-09-28

5come5帮你背单词 [ westwards /'wədz/ ad. 向西 ]


JSP求救:cannot be resolved to a type

做毕设遇上这么一个问题:
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 7 in the jsp file: /index.jsp
validateUser cannot be resolved to a type
4:
5: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
6:
7: <jsp:useBean id="validate" scope="request" class="validateUser">
8:    <jsp:setProperty name="validate" property="*"/>
9: </jsp:useBean>
10: <% if (validate.vUser()){


An error occurred at line: 7 in the jsp file: /index.jsp
validateUser cannot be resolved to a type
4:
5: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
6:
7: <jsp:useBean id="validate" scope="request" class="validateUser">
8:    <jsp:setProperty name="validate" property="*"/>
9: </jsp:useBean>
10: <% if (validate.vUser()){


An error occurred at line: 7 in the jsp file: /index.jsp
validateUser cannot be resolved to a type
4:
5: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
6:
7: <jsp:useBean id="validate" scope="request" class="validateUser">
8:    <jsp:setProperty name="validate" property="*"/>
9: </jsp:useBean>
10: <% if (validate.vUser()){


Stacktrace:
   org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
   org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
   org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


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

validateUser是验证用户的程序。放在src目录下。这报错是什么意思?
搞不懂搞不懂了。。。兄弟们帮忙啊
顶端 Posted: 2007-04-29 22:28 | [楼 主]
堕落ing



性别: 帅哥 状态: 该用户目前不在线
等级: 前途无量
发贴: 7755
威望: 0
浮云: 1113
在线等级:
注册时间: 2006-09-14
最后登陆: 2008-06-16

5come5帮你背单词 [ if /if/ conj. 如果,假如,是否 ]


不用构造函数,只要有setxx,和getxx方法就可以了
顶端 Posted: 2007-04-30 10:29 | [1 楼]
我来我网·5come5 Forum » 程序员之家

Total 0.010864(s) query 6, Time now is:11-23 15:47, Gzip enabled
Powered by PHPWind v5.3, Localized by 5come5 Tech Team, 黔ICP备16009856号