I'll second that. For instance, in GNUJSP's pre-1.0 implementation of <%@
include %>, the compilation process was somewhat intelligent such that given
something like the following:
<%@ include file="header.jsp" %>
<SCRIPT runat="server">
String PageTitle = "Hello";
</SCRIPT>
the variable PageTitle was accessible from within header.jsp. It would be
very nice to know how much of this type of behavior can be relied upon
across JSP implementations.
Sam
----------
From: Jack Humphrey[SMTP:[EMAIL PROTECTED]]
Reply To: Jack Humphrey
Sent: Monday, May 03, 1999 12:11 PM
To: [EMAIL PROTECTED]
Subject: server-side includes in JSP 1.0
My reading of the JSP 1.0 spec is that there are three kinds of
server-side includes:
1. Translation-time inclusion: <%@ include file="relativeURLspec" %>
Content is included when JSP is translated into a servlet. Included
content can be JSP.
2. Request-time static inclusion: <jsp:include file="urlSpec">
Content is included when request is made. Allows you to dynamically
change
which file is included. Included content is not parsed as JSP.
3. Request-time dynamic inclusion: <jsp:request include="urlSpec">
Dynamic content is included when request is made. This is equivalent
to
the callPage method from previous specs/implementations. Maps to
RequestDispatcher.include in JSDK 2.1. Included content is parsed as
JSP.
First of all, bravo for making the spec much more explicit in this
area.
However, I think that #1 is still a bit ambiguous. When doing
translation-time inclusion, should the content be included in a
pre-process step (before translation), or during translation? It
seems
like the right answer is the former, but the spec should probably be
very
specific here so that SSI will be consistently implemented by the
different JSP runners.
Jack Humphrey
Software Developer, Trilogy Software, Inc.
[EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
of the message "signoff JSP-INTEREST". For general help, send email
to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".