Well I guess anything we ever need to know is in a book somewhere, so why
the hell do we need this distribution list.......
-----Original Message-----
From: Jim Preston [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 29, 2000 5:11 PM
To: [EMAIL PROTECTED]
Subject: Re: include file problem
(I'm trying to resist saying, "Get a JSP book and look up the difference
between the include tag and the include directive." But I didn't quite
resist...)
The <%@ does the include at load time and is therefore static; the
<jsp:include does it at request time, and is therefore dynamic. With the
latter, you can do something like:
<%
String tempFile = "include.html";
%>
<jsp:include page="<%=tempFile%>" flush="true"/>
where (it should be obvious), the "tempFile" variable can be obtained from
anywhere.
--Jim Preston
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of ray
Sent: Thursday, June 29, 2000 12:23 AM
To: [EMAIL PROTECTED]
Subject: include file problem
i would like to include a htm file in my jsp
i store the url in session, and retreive it to the include file parameter.
but it will generate error
e.g <%@ include file=myFileName%>
in this case, i need to save the included file path as a variable,
how can i do this?
thanks
ray
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets