In Struts Action 1.2 and prior, you could define a DynaActionForm and
use it's name in more than one action mapping, just like you can with
any ActionForm.You can also extend DynaActionForm as base class and
add convetional properties, and resuse those in the usual way. But
that *was* it.
In Struts Action 1.3, we added an "extends" attribute so that one
DyanActionForm could "inherit" from another. Here's a clip from the
MailReader for Action 1.3.
----
<!-- BaseAction form bean (abstract) -->
<form-bean
name="BaseForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property
name="username"
type="java.lang.String"/>
<form-property
name="password"
type="java.lang.String"/>
<form-property
name="task"
type="java.lang.String"
initial="Create"/>
</form-bean>
<!-- LogonAction form bean -->
<form-bean
name="LogonForm"
extends="BaseForm"/>
<!-- RegistrationAction form bean -->
<form-bean
name="RegistrationForm"
extends="BaseForm">
<form-property
name="fromAddress"
type="java.lang.String"/>
<form-property
name="fullName"
type="java.lang.String"/>
<form-property
name="password2"
type="java.lang.String"/>
<form-property
name="replyToAddress"
type="java.lang.String"/>
</form-bean>
----
Struts Action 1.3 is at the initial "test build" stage. If anyone
would like to try it, you can snag a copy here
* http://svn.apache.org/dist/struts/action-lib/
The library has all the binary jars you would need to test Action 1.3
with your own applications.
-- HTH, Ted.
On 3/30/06, vasumathi <[EMAIL PROTECTED]> wrote:
>
>
> Hi
> Anyone can help, how to use the properties of a DynaActionForm in other
> DynaActionForm with example.
>
> with regards
> vasu
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]