日期:2014-05-18  浏览次数:20754 次

这是什么问题啊->JSP
在请求页面:http://127.0.0.1:8080/webapp/reg.jsp
时提示下面异常

type   Exception   report

message  

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

exception  

org.apache.jasper.JasperException:   /reg.jsp(3,0)   The   value   for   the   useBean   class   attribute   user   is   invalid.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
-------------------------------------------------
org.apache.jasper.JasperException:   /reg.jsp(3,0)   The   value   for   the   useBean   class   attribute   user   is   invalid.
是什么原因引起的?

------解决方案--------------------
看你这个文件啊:reg.jsp

------解决方案--------------------
没有找到这个BEAN
------解决方案--------------------
class= "user "
试试class= "包名.user "
------解决方案--------------------
<jsp:useBean id= "user " scope= "session " class= "user ">
这里 class= "user " 不对,应该把包名放一起,比如class= "com.microsoft.aaa.user ",这里 "com.microsoft.aaa "是包名
------解决方案--------------------
可能是没配置好。。。也有可能名字等不对应,仔细检查检查吧
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html