David asks:
>If I use <psp:include file="common.psp"> the code in common.psp never gets
>run (and I understand that that directive is intended just for intending
>static-ish HTML files.)
I put my common code into a support subdirectory, so I use <%@ include
file="support/common.psp" %> for this sort of thing. The "<%@ include"ed
code is inserted literally into the web page, so it has access to res, req,
and anything else that you'd have if you had just copied & pasted the
code. I've found it is particularly useful to mix HTML and PSP in the
files that get included.
By the way, you can not embed <%@ include file %> directives inside PSP
code. To make control structures work, you'll need to use the <% end %>
tags like so:
<%
if errorString == "": %>
<%@ include file = "support/goodorder.psp" %><% end %><%
else: %>
<%@ include file = "support/badorder.psp" %><% end %> </body>
David.
-----------------------------------------------------------------
David Casti Managing Partner
Neosynapse www.neosynapse.net
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss