Re: Java/J2EE interview Questions what are include directives?
The include directive informs the JSP engine to include the content of the resource in thecurrent JSP page. Below is the syntax for include statement.
<%@ include file="Filename" %>
Below is a code snippet which shows include directive in action
<html>
<head>
<title>Directive in action</title>
</head>
<%@ include file="/companyname.html" %>
<body>
<h1>Directive in action</h1>
</body>
</html>companyname.html contains the following:
<p>Koirala and Koirala Limited</p>
__________________ Venkat knowledge is Power |