Include File : Include « JSP « Java Tutorial






index.jsp

<%--
  Copyright (c) 2002 by Phil Hanna
  All rights reserved.
  
  You may study, use, modify, and distribute this
  software for any purpose provided that this
  copyright notice appears in all copies.
  
  This software is provided without warranty
  either expressed or implied.
--%>
<%@ page session="false" %>
<h3>Flavors</h3>
Our most popular flavors are:
<%@ include file="flavor_list.html" %>
Try them all!

flavor_list.html

<!--
  Copyright (c) 2002 by Phil Hanna
  All rights reserved.
  
  You may study, use, modify, and distribute this
  software for any purpose provided that this
  copyright notice appears in all copies.
  
  This software is provided without warranty
  either expressed or implied.
-->
<ol>
<li>Chocolate</li>
<li>Strawberry</li>
<li>Vanilla</li>
</ol>
  Download:  JSPIncludeFile.zip( 3 k)








23.37.Include
23.37.1.Include Page by Path
23.37.2.Include Page and Pass Parameter Through Request Object
23.37.3.Include File