这是怎么回事???急,在线等!!
下面是我写的程序代码:
<%@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