Listing 4. Sample Version of JSP

<HTML>
  <Head>
      <Title>Mini-dynamic JSP Title</Title>
  </Head>
  <Body>
  <% if (request.getRemoteHost().equals("" { %>
      <jsp:forward page="no-reverse.jsp"/>
  <% } else { %>
      <jsp:include page="menubar.jsp" flush="true"/>
      <P>You are connecting from the host
            <%= request.getRemoteHost() %>.</P>
  <% }  %>
  </Body>
</HTML>