You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ehteshamul Haque <eh...@yahoo.com> on 2007/09/10 07:05:42 UTC
form bean>form-property>type please help
Can we set a type of a form-property as array of Objects?
Example:
<form-bean name="informationForm" dynamic="true"
type="org.apache.struts.action.DynaActionForm">
<form-property name="informations" type="com.myCompany.beans.Information[]"/>
</form-bean>
OR set them as ArrayList(Collection)
Like:
<form-bean name="informationForm" dynamic="true"
type="org.apache.struts.action.DynaActionForm">
<form-property name="informations" type="java.util.ArrayList"/>
</form-bean>
Another question: If both are possible then which one is better for which context
----------------
Ehteshamul Haque
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.