逻辑:迭代Bean未找到错误Struts

时间:2011-06-18 19:34:10

标签: java struts-1 struts-html

我收到以下错误 - >当我尝试运行我的代码时,无法在任何范围内找到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"/>

0 个答案:

没有答案