这是怎么回事???急,在线等!!

tianhua 2005-03-16 11:04:15
下面是我写的程序代码:
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html>
<head>
<title>
<bean:message/>
</title>
<html:base/>
</head>
<html:errors/>
<html:form action="/logonAction" method="post" focus="username" >
<center>
<table border="1" width="400" style="height:200" bgcolor="#eeeeee">
<tr>
<td class="line">
<bean:message key="logonbox.header"/>
</td>
</tr>
<tr>
<div align="center">
<td class="box">
<table border="1" width="100%">
<tr>
<td>
<bean:message key="logonForm.username.displayname"/>:
<html:text property="username" size="10" maxlength="6"></html:text>
</td>
</tr>
<tr>
<td>
<bean:message key="logonForm.password.displayname"/>:
<html:text property="password" size="10" maxlength="6"></html:text>
</td>
</tr>
<tr>
<td align="center">
<html:submit>
<bean:message key="button.submit"/>
</html:submit>
</td>
</tr>
</table>
</td>
</div>
</tr>
<tr>
<td class="line">
<bean:message key="logonbox.footer"/>
</td>
</tr>
</table>
</center>
</html:form>
</html:html>
===========================================================
发布后出现如下错误,请高手帮忙看看:
<2005-3-16 上午10时59分49秒> <Error> <HTTP> <101017> <[ServletContext(id=1072946
,name=WebModule,context-path=/WebModule)] Root cause of ServletException
javax.servlet.jsp.JspException: Cannot find bean null in any scope
...全文
117 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
jverson 2005-03-16
  • 打赏
  • 举报
回复
Cannot find bean null in any scope 找不到你所调用的Bean
zhl7522 2005-03-16
  • 打赏
  • 举报
回复
找不到你所调用的Bean
woodcord 2005-03-16
  • 打赏
  • 举报
回复
顶一下
tianhua 2005-03-16
  • 打赏
  • 举报
回复
但我的formbean明明就在classes里面,会不会是taglib的问题,我用的是Weblogic 做应用服务器,我看了启动窗口的出错信信息,好像是taglib加载不到。用jb2005做的程序,在设置中也先择了使用taglib,怎么还会加载不上呢,另外还有个问题ApplictionResource.properties文件应该放在什么地方程序才能找到呀......
java_jing 2005-03-16
  • 打赏
  • 举报
回复
确保使用的formbean在相应的目录下,classes/.../.../yourformbean

81,091

社区成员

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

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