<%@ include file="relative-URL"
%>
Place in JSP , EXACTLY where you would like the file referenced
to be included. THIS IS INCLUDED AT THE time of translation
into the Servlet, but, before the Servlet is compiled and run.
Generally, use to include:
- static HTML
- other JSP code
POTENTIAL PROBLEM: Your
server may not be set up to detect changes in included files
into the JSP after the produced Servlet has been created!!!!!!!
>>>There is no simple way to
invoke a "retranslate the JSP page now"...you must
modify the date (by somehow "touching" the file) the
JSP file.
LIMITED SOLUTION: Use
the XML action instead which does not include the file at Translation
time, but, afterwards at each client request (each new thread...if
multi-threaded on).
<jsp:include page="relative-URL"
flush="true">
LIMITATION:
Can only use for static HTML, not to include other JSP code!!!!!!!!!!!!!!!!!!!!!!!