Directive Tags

Directive include/Static include tag
Standard syn
  1. <%@include file="..."%>
Xml syn
  1. <jsp:directive.include file="...">
-->This tag is given to include content/code of given destination file or component to the JES class code of source jsp page
-->Here there is no separate execution for B.jsp ,but it's code will be included to the JES class code of source page A.jsp

A.jsp
  1. <b>from A.jsp(start)</b>
  2. <%@include file="B.jsp"%>
  3. <b>end of jsp</b>
B.jsp
  1. <b>from B.jsp</b>
  2. <%=new java.util.Date()%>
  3. <br>end
JspApp6-DirectiveInclude
|-->webContent
      |-->A.jsp
      |-->B.jsp

Comments

Popular posts from this blog

JSP Life Cycle

Project Architecture's

Java Mail API