The difference is when you want to include the file - at compile time
<%@include file="URL" %> or at runtime <jsp:include>. Using the compile time
option results in faster execution, while the runtime option results in the
flexibility to decide dynamically which file to include.
-----Original Message-----
From: Venu Gopal [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 12, 2000 10:47 AM
To: [EMAIL PROTECTED]
Subject: Re: jsp include question
Which one is best to use? The simple situation is like
i want to include header & footer on every page which
one should i use?
<jsp:include> or <%@include file="relative URL" %>?
Venu
--- Shireesh Thanneru <[EMAIL PROTECTED]>
wrote:
> <jsp:include> happens at run-time, where as
> <%@ include file="URL" %> happens at compile time.
>
> Shireesh Thanneru
>
> On Sun, 12 Nov 2000, Chin Sung Kit wrote:
>
> >hi all,
> >
> >what's the difference between <jsp:include> and
> <%@include
> >file="relative URL" %>?
> >
> >thank you.
> >
> >ced
> >
>
>===========================================================================
> >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
__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/
===========================================================================
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