IIRC, there's some ongoing work to provide an "extends" capability in
DynaActionForm definitions.  In the mean time, though, you can
leverage the fact that struts-config.xml is an XML document, and use
XML entities to encapsulate the common chunks.  Consider:

    <?xml version="1.0" ?>
    <DOCTYPE struts-config ... [
        <!ENTITY shared-props-1  "shared-properties-1.xml">
        <!ENTITY shared-props-2  "shared-properties-2.xml">
    ]>
    <struts-config>
        ...
        <form-bean name="myBean" type="...">
            <form-property>...unique property ...</form-property>
            &shared-props-1;
            &shared-props-2;
        </form-bean>
        <form-bean name="anotherBean" type="...">
            <form-property>...unique property ...</form-property>
            &shared-props-1;
        </form-bean>
        ...
    </struts-config>

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to