NonStop Servlets for JavaServer Pages (5.0) System Administrator's Guide

Overview and Architecture
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide525644-002
1-11
An Example of JSP Code
template is coded as JSP using the include directive to reference some HTML in
another file.
Example 1-1. JSP Code
<%-- Filename: "TemplateDemo.jsp" --%>
<HTML>
<BODY>
<CENTER> Welcome To My WebSite</CENTER>
<BR>
<P> The time is <% new java.util.Date().toString() %> </P>
<%@ include file = "Body.html" %>
</BODY>
</HTML>
_____________________________________________________________________________
The HTML file called Body is:
<BR>
<H1>
This is text that will be included in the body of the HTML in the JSP file
</H1>
<BR>