Sunday, July 21, 2013

JSP: What is the include directive?

There are thirteen attributes defined for a page directive of which the important attributes are as follows:

  • The include directive is used to statically insert the contents of a resource into the current JSP.
  • This enables a user to reuse the code without duplicating it, and includes the contents of the specified file at the translation time.
  • The syntax of the include directive is as follows: <%@ include file = "FileName" %>
  • This directive has only one attribute called file that specifies the name of the file to be included.

No comments:

Post a Comment