• Java IO
  • Spring
  • JSP
  • jQuery
  • PHP
  • RubyonRails
  • Servlet
  • JavaScript
  • SQL Tutorial

  • <

    JSP Include Directive Tutorial

    It used to merge with other external file in jsp page.JSP Include Tag used to include resources jsp,html ..etc.


    Include Directive Syntax


    <%@ include file="filename.jsp" %>
    

    JSP Include Directive Example



    index.jsp
    <html>
        <head> 
            <title>Welcome Page</title> 
        </head> 
       
      <body> 
            <%@ include file="header.jsp" %> 
            Welcome, User
      </body> 
    </html> 
    


    header.jsp
    <html> 
      <body> 
          <img src="header.jpg" alt="This is Header image" / >   
      </body> 
    </html> 
    
















    © copyright 2017-2021 Completedone pvt ltd.