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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>: > >> 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >