make sure you specified a "name" attribute for your "action" element in struts-config
<action path="/myAction" name="myActionForm" type="MyActionAction" scope="request" input="/myAction.jsp"> <forward name="success" ....>
</action>
yes i have specified a name - the action mapping is ( customer refers to a form bean i have defined in form-beans )
<action path="/updateCustomer" name="customer" scope="request" type="com.lab.struts.customer.CustomerAction" parameter="action" input="/WEB-INF/jsp/CustomerDetails.jsp" attribute="customer">
<forward name="updated" path="/WEB-INF/jsp/CustomerDetails.jsp" redirect="false" />
</action>
-----Message d'origine----- De : teknokrat [mailto:[EMAIL PROTECTED] Envoyé : Monday, March 17, 2003 5:11 PM À : [EMAIL PROTECTED] Objet : having a problem updating my form - starnge error with beanUtils
I have a jsp page that is being populated OK by the form bean. However - when i make changes to the fields and submit it to my action i get the following error
java.lang.IllegalArgumentException: No bean specified
at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:849)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
Does anyone know what this means and what is going on here?
thanks
p.s. the form is a simple <html:form action="myAction.do" > etc </html:form>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]