There's a little detail (maybe it's documented somewhere, I'm not sure) that if you subclass a page, then the PSP file will by default implement writeContent instead of writeHTML. At least, that's what I remember. Having a SitePage is very useful -- I'd recommend making such a class, maybe just leaving it empty to start with, and I think that will handle your problem. But this is just from memory, not experience, so send another mail if that doesn't work.
On Mon, 2003-03-03 at 01:34, Randall Smith wrote: > I've been looking for a better way to write web applications. I've used > asp/vbscript and then moved to php on apache/linux. > > I used the webkit adapter and setup a seperate application directory and > it works fine. I added a psp handler in the apache configuration and it > works OK too. > > What I'm confused about right now is the Page/SitePage stuff. From what I > understand, psp files use the Page ?servlet? and by default override the > writeHTML method. How does writeHTML become the default method? I would > like writeContent or writeBody to be the default method because I don't > want to have to write <%@ Page method="writeContent"%> in every psp file. > Note that the psp files are not in the application directory. The app > directory is /var/www/appdir and psp directory is /var/www/html/pspdir. > > I looked at the examples and this is what I am seeing: > <%@ page imports ="sys,os,time,PSP.Examples.PSPExamplePage:PSPExamplePage"%> > <%@ page method="writeContent" %> > <%@ page extends="PSPExamplePage"%> > > Do I I have to do all of this with every psp file? > > Can I define some SitePage with a default method of writeContent so that I > can just write content and the rest of the document will be automatically > generated? > > Thanks > > Randall > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
