[EMAIL PROTECTED] wrote:
Hi
In my struts config, I have a few forms, with type DynaValidatorForm. The
problem is, I have a few forms who share a few fields. Is there a way to
declare a superform and let the other extend that form, so that I don't have to
declare the common fields for every form?
Yes, using the 'extends' attribute. Something like:
<form-beans>
<form-bean name="base" type="...DynaValidatorForm">
<form-property name="value1"/>
<form-property name="value2"/>
...
</form-bean>
<form-bean name="form1" extends="base">
...
</form-bean>
</form-bean>
Note, this is a relatively recent feature in Struts 1, so you may need
to upgrade to take advantage of it (I believe it was introduced in the
1.3 series).
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]