You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by venkat reddy <ve...@gmail.com> on 2008/05/04 13:56:32 UTC
Re: inheritance...
Balaji,
Trying using the baseForm (or some other identifier which currently has a
BaseForm reference) as if it were a ChildForm's reference. Java's
polymorphism mechanism takes care of everything.
Post if any problem exists.
On Tue, Apr 29, 2008 at 9:18 AM, balaji.m.cs <ba...@gmail.com> wrote:
>
> ya its not a problem but i am asking can we able to reffer a childform bean
> object specified in struts config with the baseform reference.. in the time
> of rendering into a jsp...?
>
> <form-bean name="baseform" type="mypkg.form.BaseForm"/>
> <form-bean name="childform" type="mypkg.form.ChildForm"/>
>
>
> Antonio Petrelli-3 wrote:
> >
> > 2008/4/27 balaji.m.cs <ba...@gmail.com>:
> >> BaseFrom extends ActionForm {
> >>
> >> private List myList = null;
> >> }
> >>
> >> ChildForm extends BaseForm
> >
> > ChildForm is also BaseForm, it's OOP inheritance, so I don't see the
> > problem here.
> >
> > Antonio
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/inheritance...-tp16926881p16952816.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>