Include another file : Include « JSP « Java

Include another file

  <HEAD><TITLE>Include another file</TITLE></HEAD>

    <%@ include file='welcomeText.html' %>
    This text appears after the included file

// File:welcomeText.html
<TABLE WIDTH='100%' border="0">
  <TR><TD align="right" bgcolor="#FFFF99"><i><b>Welcome to your online account</b></i></TD></TR>


Related examples in the same category

1.Jsp page includes another Jsp page
2.Jsp Include Static HTML
3.Using Include And Pass Value
4.JSP Include
5.Using Includes
6.Passing parameters during including
7.Forward a request
8.JSP standard action: include