WHAT'S NEW?

include Directive
-include directive are given after <html> and before </html>.
-It makes the static inclusion of .html/.jsp file.
-These files are include during translation.

Syntax:
<%@ include file="somename.html" %>
-Include .html/.jsp file should not contain <html> and </html>.


Header.html
 
<body>
<h6>Welcome To Asterix Solution</h6><br>
<hr>
</body>

Footer.html
 
<body>
<hr>
<br>
<h6>This website is a copyright</h6>
</body>

IncludeJSP.jsp
 
<%@ page language="Java" %>
<html>
<body>




<%@ include file="Header.html" %>
<p> Please login..........</p>
>%@ include file="Footer.html" %>
</body>
</html>

0 comments:

Post a Comment