DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22600>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22600

Defining inheritance for dynamic action forms in struts-config





------- Additional Comments From [EMAIL PROTECTED]  2003-08-21 04:08 -------
I like this idea. We could take a leaf out of Tiles' book, where a tile can 
extend another tile, and perhaps come up with something like this:

<form-bean name="baseForm" type="org.apache.struts.action.DynaActionForm">
    <form-property name="common1"  type="java.lang.String"/>
    <form-property name="common2"  type="java.lang.Integer"/>
    <form-property name="common3"  type="java.lang.String"/>
</form-bean>

<form-bean name="derivedForm" extends="baseForm">
    <form-property name="derived1"  type="java.lang.String"/>
    <form-property name="derived2"  type="java.lang.String"/>
</form-bean>

Here, the second form bean uses the 'extends' attribute to specify a base form 
definition, instead of using the 'type' attribute to specify the class.

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

Reply via email to