facebook

Struts: Cannot retrieve definition for form bean null

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #274068 Reply

    Kent Johnson
    Participant

    Im getting an error inside mozilla when I try to run my Struts application:

    Cannot retrieve definition for form bean null

    I have a form bean defined and declared in the struts-config.xml. I have attached the code below. Can anyone see what I might be doing wrong?

    Thanks!
    Kent
    kwjohn@xmission.com

    struts-config.xml ———————————————————————————————————————————————————-
    <form-beans>

    <!– Registration form bean –>
    <form-bean name=”userForm” type=”com.ads.struts.form.UserForm” />

    </form-beans>

    <!– ========== Action Mapping Definitions ============================== –>
    <action-mappings>

    <!– Edit MenuUser information KWJ 17-Aug-2007 –>
    <action path=”/editUser”
    type=”com.ads.struts.action.EditUserAction”
    attribute=”userForm”
    scope=”request”
    validate=”false”>
    <forward name=”ksuccess” path=”/jsp/user.jsp” />
    </action>

    </action-mappings>

    mainMenu.jsp call statement ——————————————————————
    <li><html:link page=”/editUser.do?action=Edit”>Edit User Information</html:link></li>

    EditUserAction.java ————————————————————————–
    The form is populated with the call to

    PropertyUtils.copyProperties(userform, user);

    This statement in EditUserAction.java populates userform with the data from the bean user
    and the values have been verified by using the debug trace in eclipse.

    #274103 Reply

    Loyal Water
    Member

    Can you please post your installation details here for me. The posting guidelines thread is available at the top of the forum.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Struts: Cannot retrieve definition for form bean null

You must be logged in to post in the forum log in