Include another file : Include « JSP « Java






Include another file

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

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

// 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>
</TABLE>



           
       








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