Magnus wrote:
>>Any ideas about how to do something like this cleanly?<< Since the decision to use PSP, Cheetah, pure servlets, etc. is the kind of decision that one must live with for a very long time, I've spent some time fiddling with all of them. For PSP, the minimum I've been able to get a page down to is: <%@ page import="path.to.sitepage:sitepage_baseclass_name" %> <%@ page extends="class_name" %> <%@ page method="writeContent" %> ...page specific content My SitePage base class is a modified version of WebKit.Page. You can omit the import under circumstances described in the PSP docs. I alway include it since different contexts use different SitePage baseclasses, so I always need to specify a path, relative to the context directory. I thought about using includes, but this approach gets messy if you have a complex page where you need content to be inserted into several different, disjoint portions of the page. The major weakness I see with PSPs is that there doesn't seem to be a way to override more than one page method at a time. So, if more than one portion of the page needs to be overridden, a local copy of sitepage needs to be created. Perhaps I'm wrong here? ...Edmund. _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
