usebean class属性有无包名问题
来源:互联网 发布:成都高新区 淘宝 编辑:程序博客网 时间:2024/05/10 08:19
今天调别人的代码发现错误如下:
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: 8 in the jsp file: /getStudent.jspstudent cannot be resolved to a type5: <meta http-equiv="Content-Type" content="text/html; charset=gb2312">6: <title>学生</title>7: </head>8: <jsp:useBean id="student" scope="page" class="student"/>9: <body bgcolor="#0099FF" text="#FFFFFF" link="#33FF00">10: <p>11: <%
说usebean无法联接class的student类,网上查找资料说,要写对类路径,必须加上这个类的包名,但是我看这个类的确直接在src下
默认的包下面新建的类,并没有其他的包名,没办法,后来加了个包名后,就可以访问这个getstudent.jsp页面了。难道usebean必须
加包名才能正确使用类吗。这里写下备后面有何我遇到相同情况的兄弟查阅,如有高手请赐教。
- usebean class属性有无包名问题
- jsp:useBean中的class问题
- The value for the useBean class attribute is invalid 问题
- The value for the useBean class attribute is invalid 问题
- The value for the useBean class attribute is invalid 问题
- The value for the useBean class attribute is invalid 问题
- The value for the useBean class attribute is invalid 问题
- 关于jsp中usebean中class=?问题
- <jsp:useBean class="" >
- jsp:useBean 不能编译成class或者没有class这个属性
- jsp:useBean 不能编译成class或者没有class这个属性
- java包名问题
- 更改包名问题
- java包名问题
- useBean class attribute is invalid
- ImageButton有无Enable属性
- 获取类class的包名packageName
- JSP usebean的问题
- 世界500强企业中国的CEO们对 80后 90后的忠告
- 如何正确使用不同类型的WSDL文件
- 自我感觉非常有用的英语学习网站
- 杀毒绝招:用“记事本” 处理顽固程序
- 小布老师《SQLite快速入门视频教程》的笔记
- usebean class属性有无包名问题
- GridView 72般绝技
- StringToDouble()
- 当天超级短线T+O操作技巧
- VC编辑框(EDIT)的自动换行与自动滚屏
- ActionScript3 Function研究
- Linux配置Java Home变量
- 未曾离开先怀念---纪念宏福
- 19招让Windows 7系统更快