JSP include directive


// JSPMP.jsp

<!-- JSP -->

<jsp:directive.include file="JSPHdr.jsp"/>
<jsp:directive.include file="JSPCon.jsp"/>
<jsp:directive.include file="JSPFtr.jsp"/>

// JSPHdr.jsp
<!-- JSP -->

<html>  
     <body>
     <center><h2>
          Header file - Welcome to JSP
     </h2></center>
     </body>
</html>

// JSPCon.jsp
<!-- JSP -->

<html>  
     <body>
     <center><h2>
          Content - This page is about JSP
     </h2></center>
     </body>
</html>

// JSPFtr.jsp
<!-- JSP -->

<html>  
     <body>
     <center><h2>
          Footer - Created by Anurekha
     </h2></center>
     </body>
</html>

No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu