struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pat Quinn" <pat_quinn2...@hotmail.com>
Subject DynaAction Form
Date Tue, 03 Dec 2002 14:14:09 GMT
Hi all,

I have a java value object (i.e. MyVo) which i add the DynaAction Form 
Below. When i display my jsp it works fine using headerVO.firstName but when 
i submit the page to save user changes i get the following error:

java.lang.IllegalArgumentException: No bean specified
	at 
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:816)
	at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:846)


My Details are as follows:

<!-- FORM BEAN DETAILS -->
<form-beans>
<form-bean name="MyForm" dynamic="true"   
type="org.apache.struts.action.DynaActionForm">
  <form-property name="headerVO" type="com.bla.bla.bla.MyVO" />
  </form-bean>
</form-beans>

<!-- SAVE ACTION -->
<action path="/saveHeader" type="com.bla.bla.bla.actions.saveHeaderAction" 
scope="request" name="MyForm" validate="true" input="/jsp/header.jsp">
</action>


in my JSP i have the following:
<html:text property="headerVO.firstName"/>


any ideas???









_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message