Start of Content Area

Procedure documentation Using the taglib and include Directives  Locate the document in its SAP Library structure

Using the taglib Directive

You can use the taglib directive to declare that your JSP page uses custom tags in its body. In the uri attribute you specify the address of the Tag Library Descriptor that describes the custom tags.

For more information on JSP tag libraries concepts and programming issues, see Developing Custom JSP Tag Libraries.

Using the include Directive

You can use the include directive to include other files, such as HTML pages, JSP pages, and so on, in your current JSP. Because this directive is interpreted at JSP page translation time, you must be sure that the resources you include with it are not expected to change often. If the inserted file changes, you would have to retranslate the JSP page. Therefore, if you need to include a file that you expect to change frequently in your JSP page, you can do this using the include action. Then the file will be included when the page is requested.

You must specify the URI of the file that you want to include in the file attribute of the directive. The URI can be relative to the Web application’s root directory (if it starts with a backslash), or relative to the JSP page (if it does not start with backslash).

For more information about the tagliband include directives, refer to the Java Server Pages Ô 1.2 Specification at http://java.sun.com.

 

End of Content Area