Karl Putland wrote: > I've taken a different route that might be of interest and I wonder > if the two ideas can be merged? > > I've gone the MVC route, where I have servlets that are the > controllers, then one or more psp(s) that are the views for the > servlet. For instance a servlet: > > CustomerInformation.py > > has these psp(s) that it can use to display different views > > psp/CustomerCreate.psp > psp/CustomerSearch.psp > psp/CustomerChoose.psp > psp/CustomerDisplay.psp > > This way I can build small bits of functionality and include them > into other bits of the site. > > The part that makes me curious is that I wonder if it makes sense > for the psp views to inherit from the controler servlet. Does > anyone else have some thoughts on this?
I like your idea and I can think of a few places in my application where this type of "controller" servlet would make a lot of sense. Rather than having the PSP's inherit from the controller servlet, I think it would be cleaner to have a CustomerInformationBase base class that is the base class for ControllerInformation AND for the PSPs. That's where you could put shared functionality that is needed by both the PSPs and the controller servlet. Are you using self.includeURL() from the controller servlet to pull in the psp's? Or self.callMethodOfServlet()? - Geoff _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
