Shahzad Bhatti Welcome to my ramblings and rants!

March 2, 2002

With JSP, there are two different kinds of content to include: static and dynamic. The include directive shown here:

Filed under: Computing — admin @ 2:45 pm

With JSP, there are two different kinds of content to include: static and dynamic. The include directive shown here:

<%@ include file=”include/copyright.inc” %>
includes the source of the target page at translation/compile time. Therefore, it’s not possible to include runtime content using the include directive. The JSP include directive treats a resource as a static object, and the context of the resource is included literally in the page.

In direct contrast, the include action

handles the resource as a dynamic object. The request is sent to the resource, and the result of the processing is included. Templates use a dynamic approach so that runtime expressions can be evaluated and included.

Powered by WordPress