JSP Include Directive

Advertisements

Page Directive Taglib Directive

JSP Include Directive

It is used to include some other pages into the JSP document, It may be JSP file, html file or text file. This is known as static include because the target page is located and included at the time of page compilation.

The jsp page is translated only once so it will be better to include static resource.

Advantage of Include directive

Code Re-usability

Syntax of Include directive elements

Syntax

<%@ include file="resourceName"%>

Example

<html>  
<body>  
  
<%@ include file="footer.html" %>  
   
</body>  
</html>  

Note: The include directive includes the original content, so the actual page size grows at run-time.


Page Directive Taglib Directive

Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements