I'm not the only person on this list who has chastised someone for asking a
question that can easily be found in any JSP book. This list should not be
used as a lazy replacement for looking up simple information. The list is
for exchange of information or opinions not easily found elsewhere, or the
asking of questions that are not addressed in books or online sources.
Besides, I did go on to answer the question, so what's your beef?

--Jim Preston


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Hensley, Zachary
Sent: Thursday, July 13, 2000 3:08 PM
To: [EMAIL PROTECTED]
Subject: Re: include file problem


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

===========================================================================
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

Reply via email to