Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Servlet/JSP/JSF/JavaFX Script  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
reply to postflat modethreaded modego to previous topicgo to next topicgo to back
作者 请教一个关于JSP调用BEAN出错的问题!
tsizhao





发贴: 10
于 2006-04-06 17:07 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
问题是这样的。我用MyEclipse+Tomcat建一个J2EE工程,一个JAVABEAN,再有几个JSP页面,在一个JSP页面里调用BEAN时,总是出现如下错误:(Bean在单独测试是正确的。)
type Exception report

message

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

exception

org.apache.jasper.JasperException: /log/web/log_cm.jsp(27,4) The value for the useBean class attribute com.tsizhao.LogBean is invalid.
  org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
  org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
  org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
  org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1227)
  org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
  org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
  org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
  org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
  org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  org.apache.jasper.compiler.Generator.generate(Generator.java:3272)
  org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

我的JSP页面调程序:
<body>
<jsp:useBean id="handle" class="com.tsizhao.LogBean" scope="request">
<jsp:setProperty name="handle" property="*"/>
</jsp:useBean>
<%
  if (handle.validate()){
%>
<jsp:forward page="success.jsp"></jsp:forward>
<%}
else{
%>
<jsp:forward page="relog.jsp"></jsp:forward>
<%}%>
</body>
被这个问题烦了好久了,,都解决不了。。请知道的指点一下,是不是Eclipse或是Tomcat需要配置什么的呢?




搞笑QQ图片

话题树型展开
人气 标题 作者 字数 发贴时间
1425 请教一个关于JSP调用BEAN出错的问题! tsizhao 2233 2006-04-06 17:07
1063 Re:请教一个关于JSP调用BEAN出错的问题! andylhs 8 2006-04-17 15:20

reply to postflat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923