weblogic5.1下web application中如何从jsp调用bean和taglib(内详)

wheels 2001-05-29 05:12:00
引入web application后,把自定义的class放到web-inf/classes下(当然,所有web.xml制定的servlet classpath都可以)这样做,servlet中引用不成问题,但是,在jsp中用usebean引用,我试了好多次,都不行,还有引用taglib也是不行,看过生成的中间.java文件,都被编译成beans.Beans.instantiate(getClass().getClassLoader(), "Gauge")
浏览报错
Compilation of 'D:\weblogic\myserver\classfiles\jsp_servlet\_jsp\_index.java' failed:
--------------------------------------------------------------------------------
D:\weblogic\myserver\classfiles\jsp_servlet\_jsp\_index.java:80: ???????????
probably occurred due to an error in /jsp/index.jsp line 4:
<jsp:useBean id="Gauge" scope="page" class="Gauge"/>

D:\weblogic\myserver\classfiles\jsp_servlet\_jsp\_index.java:80: ???????????
probably occurred due to an error in /jsp/index.jsp line 4:
<jsp:useBean id="Gauge" scope="page" class="Gauge"/>

D:\weblogic\myserver\classfiles\jsp_servlet\_jsp\_index.java:86: ???????????
probably occurred due to an error in /jsp/index.jsp line 5:
<%Gauge.maxValue=10; %>


--------------------------------------------------------------------------------
Tue May 29 16:42:36 CST 2001
请赐教
...全文
44 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧