Hi

<%@ include file="pagename.jsp" %> is an include directive. The specified
file gets inserted into the generated servlet. If you change the content of
the included file it may not get updated because this is not part of the JSP
spec. You may have to update the main jsp page. You this for content that
rarely changes.

<jsp:include page="pagename.jsp" flush="true" /> is the include action. It
inserts the response generated by the include file each time the main jsp
page is requested. the include page can be determined programmatically.
  Hope this helps
  Aneesha



> hi there,
>
> can someone please suggest when to use
>
> <%@ include file="pagename.jsp" %>
>
> and when to use
>
> <jsp:include page="pagename.jsp" flush="true" />,
>
> thanks in advance
>
> manoj nahar
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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