我收到以下错误 - >当我尝试运行我的代码时,无法在任何范围内找到bean:“DisplayFeedbackForm”。
代码:DisplayFeedbackForm
public class DisplayFeedbackForm extends org.apache.struts.action.ActionForm {
Set EmailSet = new HashSet();
Set MessageSet = new HashSet();
//setter&getter methods for EmailFeedback & MessageFeedback
代码:DisplayFeedback.jsp
<logic:iterate name = "DisplayFeedbackForm" id="Display" property="EmailSet">
<bean:write name = "Display" property = "emailfeedback" />
</logic:iterate></td>
代码:Struts-config.xml
<form-bean name="DisplayFeedbackForm" type="com.myapp.struts.DisplayFeedbackForm"/>
<action name="DisplayFeedbackForm" path="/DisplayFeedback" scope="request" type="com.myapp.struts.DisplayFeedbackAction" validate="false">
<forward name="success" path="/DisplayFeedback.jsp"/>