You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marco Mistroni <mm...@waersystems.com> on 2005/03/04 14:06:14 UTC

DynaActionForm question

Hello all,
	Silly question..
I have 3-4 different action forms which shares common properties, plus
have
Some properties specific to each form.

I was wondering, is it possible to define a base DynaActionForm, and
have all my forms extend it?

If, so how?
If I define 

<form-bean name="basicDyna"
type="org.apache.struts.action.DynaActionForm">
    <form-property name="prop1" type="java.lang.String"/>
    <form-property name="prop2" type="java.lang.String"/>
    <form-property name="prop3" type="java.lang.String"/>
</form-bean>

and I want basicDyna2 to extend basicDyna, which type shall I declare? 

Thanx and regards
  marco


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: DynaActionForm question

Posted by Hubert Rabago <hr...@gmail.com>.
This feature is not yet supported on current Struts versions.  It is,
however, currently being developed with the intention of supporting
this in the 1.3.x release.

Hubert

On Fri, 4 Mar 2005 13:06:14 -0000, Marco Mistroni
<mm...@waersystems.com> wrote:
> Hello all,
>         Silly question..
> I have 3-4 different action forms which shares common properties, plus
> have
> Some properties specific to each form.
> 
> I was wondering, is it possible to define a base DynaActionForm, and
> have all my forms extend it?
> 
> If, so how?
> If I define
> 
> <form-bean name="basicDyna"
> type="org.apache.struts.action.DynaActionForm">
>     <form-property name="prop1" type="java.lang.String"/>
>     <form-property name="prop2" type="java.lang.String"/>
>     <form-property name="prop3" type="java.lang.String"/>
> </form-bean>
> 
> and I want basicDyna2 to extend basicDyna, which type shall I declare?
> 
> Thanx and regards
>   marco
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org