Description: It will always check the files contained in the changes, suitable for the inclusion of dynamic pages, and can take parameters, compile before processing.
Reason: 1, static include the result is the other JSP into the current JSP, the two are integrated together.
2, static include the code is simply written in the outside of a shared method, all variables can and include its main file share, the two highly closely combined, can not have the conflicting name of the variable. Page settings can also be borrowed from the master file.
Static include
Usage: <%@ include file= "included.htm"%>
Description: With include pseudo code implementation, will not check the file contains changes, apply to include static pages, directly content to include the first processing.
Reason: 1, the dynamic include structure is both independent, until the output is merged (see JSP generated Java file can know).
2, dynamic include JSP file independence is very strong, is a separate JSP file, need to use the object, page settings, must have their own creation, of course, fortunately it and include its page of the request scope is consistent.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.