Conclusion: the instance variable (or local variable) defined in File1, file2 can be referenced and changed. But direct access to File2 can be an error.
Conclusion: File2 does not generate a servlet, but its contents are included in the File1-generated servlet, and file2 itself is added to a vector-type class variable named "_jspx_dependants". As you can see, the instance variable "SCR_STR" defined in File2 is moved to the File1-generated servlet. It can be seen that Tomcat is dealt with in a very intriguing mechanism.
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.