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.