Yup, the chaining all takes place server-side with no trips to the client. But why not use an inheritance hierarchy to abstract out common functionality?
I understand that becomes complicated if you're using a common base class to hold the form property values. In this case I would recommend using the FormBeanUser or ThrowawayFormBeanUser base controller classes to decouple the model and controller classes. Jeff Schnitzer [EMAIL PROTECTED] > -----Original Message----- > From: Shackelford, John-Mason [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 13, 2003 10:14 AM > To: '[EMAIL PROTECTED]' > Subject: RE: [Mav-user] design opinion > > Aapo, > > Ah, thanks. I had misunderstood this in the previous discussion: one can > just define a document view instead of writing the Forward view. So to > have > a two tiered approach with the first controller handling business logic, > etc. and the second the actually rendering I'd just do something like > this: > > > <command name="MyPageBizFunct1"> > <controller class="com.foo.A"/> > <view name="render" path="MyPageRender.m"/> > </command> > > <command name="MyPageBizFunct2"> > <controller class="com.foo.B"/> > <view name="render" path="MyPageRender.m"/> > </command> > > <command name="MyPageRender"> > <controller class="com.foo.C"/> > <view name="success" path="MyPage.jsp"/> > <view name="error" path="ErrorPage.jsp"/> > </command> > > All of this is server side so we don't make an extra trip to the client, > right? > > > John-Mason Shackelford > > Software Developer > NCS Pearson - Measurement Services > 2510 North Dodge St. > Iowa City, IA 52245 > 319-354-9200x6214 > [EMAIL PROTECTED] > > > > -----Original Message----- > From: Aapo Laakkonen [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 13, 2003 11:52 AM > To: [EMAIL PROTECTED] > Subject: RE: [Mav-user] design opinion > > > > another which renders the view. I would then chain > > the controllers > > You don't have to do anything. Chaining works out-of-the-box. Look at the > archives of this mailing list for more information. > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you > planning your Web Server Security? Click here to get a FREE Thawte SSL > guide > and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > [INVALID FOOTER] > > ************************************************************************ ** > ** > This email may contain confidential material. > If you were not an intended recipient, > Please notify the sender and delete all copies. > We may monitor email to and from our network. > ************************************************************************ ** > ** > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > [INVALID FOOTER] ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en [INVALID FOOTER]
