Friday, June 03, 2005

Struts-config.xml duplicate form elements (entries)

If you have more than one form beans named the same the last one will take precedence.

type="org.apache.struts.action.DynaActionForm">
initial="" />


type="org.apache.struts.action.DynaActionForm">
initial="" />


You don't get any errors but the second bean with property named foo takesover.