struts显示列表出错!大家帮帮手
出错信息:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Cannot find bean userActionForm in scope request
jsp文件:
<%@ 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>
logon
</title>
</head>
<body bgcolor="#ffffff">
<h1> 用户列表:</h1>
<table width="100%" border="0" cellspacing="0">
<tr>
<td width="30%">
<div align="center">用户ID</div></td>
<td width="30%">
<div align="center">用户名</div></td>
<td width="30%">
<div align="center">密码</div></td>
</tr>
<logic:iterate id="userListAction" name="userActionForm" scope="request" type="com.jansky.weboa.entity.userActionForm">
<tr>
<td> <bean:write name="userActionForm" property="user_id"/></td>
<td> <bean:write name="userActionForm" property="user_name"/></td>
<td> <bean:write name="userActionForm" property="user_pwd"/></td>
</tr>
</logic:iterate>
</table>
<p> </p>
<center>
<html:errors />
</center>
<br>
</body>
</html:html>
struts-config.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="userActionForm" type="com.jansky.weboa.entity.userActionForm" />
</form-beans>
<action-mappings>
<action input="userList.jsp" path="/userListAction" scope="request" type="com.jansky.weboa.action.userListAction" validate="true">
<forward name="success" path="/userList.jsp" redirect="false" />
<forward name="add" path="/userAdd.jsp" redirect="false" />
</action>
</action-mappings>
</struts-config>