4639l3

Listing 3. Using the <jsp:include> Action

<HTML>
   <Head>
      <Title>Mini-dynamic JSP Title</Title>
   </Head>
   <Body>

      <jsp:include page="menubar.jsp" flush="true"/>

      <P>You are connecting from the host

      <% if (request.getRemoteHost().equals("")) { %>
            <%= request.getRemoteHost() %>.</P>
      <% } else { %>
            <%= request.getRemoteAddr() %>.</P>
      <% }  %>

   </Body>
</HTML>
