Hello,
I'm using Sun's reference implementation and have a question about
the order that JSP processes include files. I have the following
in my code:
JSP file
<!--# include file="header.jsp" -->
<%
try {
ResourceDispatcher rd =
getServletConfig().getServletContext().getResourceDispatcher("/demo/MiddlePage.jsp");
rd.include(request, response);
} catch (Exception e) {
out.println("got exception "+e.getMessage());
}
%>
It appears that JSP processes/displays the include file in the <%...%>
tag first and processes/displays <!--# include file="header.jsp" -->
second. Why is this? Why is the order reversed? Is it a bug in the
reference implementation or is this in the specifications and somehow I
missed this point. Has anyone else encountered similar problems? Thanks.
- Jim
===========================================================================
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".