From: Jack Moffitt <jack@ic...> - 2001-04-05 01:15:20
This is likely been discussed before, but a cursory search of the
archive turned up nothing.
PSP is modeled very closely on JSP (is JSP the origin of this style? or
is this modeled on ASP? i've never used ASP, and never seen this style
elsewhere but JSP).
Doesn't it make sense to not deviate a lot from that model then? For
instance, in JSP, tags are xml compliant. That is, a tag with no end
tag ends with '/>'. In PSP this doesn't seem to be so.
<psp:include file="blah.html"> should be <psp:include file="blah.html"/>
Also, in JSP,
<%@ include file="staticfile.html" %> is the funcional equivalent of the
current <psp:include> tag.
<jsp:include page="dynamic.jsp"/> is the way to include content at
request time, possibly parsing another jsp page.
In PSP these are swapped, which IMO is fairly confusing to someone
familiar with JSP. If nothing else, having to use both styles (if you
are using PSP for your own projects and JSP for some companies) is
likely to lead to frequent errors.
Is there any reason not to use the XML like tags and swap the include
functionality so that it's 'normal'. I'm not sure if PSP is HTML
specific but I'm pretty sure JSP is meant to be used by other content
types as well, like WAP or generic XML docs.