struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "venkat reddy" <venkatonf...@gmail.com>
Subject Re: inheritance...
Date Sun, 04 May 2008 11:56:32 GMT
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 <balaji.m.cs@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 <balaji.m.cs@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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message