This article describes in detail the precautions for using the jsp: include tag and the & lt ;%@ include tag, as well as the whole process of detecting and solving the problem during actual measurement, for more information about how to use the jsp: include tag and <% @ include tag
Recall the differences between the two (for this article, there is no difference in usage between the two)
Jsp: include: first compile the embedded ded. jsp file and then include it (first compile and then include)
@ Include is to first include the file and then compile it in a unified manner (including and then compile)
This afternoon, I want to integrate Jquery into the project, and I will see problems. The reason is the path problem.
During integration, my idea was to write a public JSP file containing some common js files. Of course, I used the Jquery plug-in here.
But after writing it, I found that it is usable to test the public JSP separately, but JQuery is never available for pages that contain the public JSP page. At first I thought it was a question of Loading Order.
After several tests, I finally found the problem.
Because there are many project files, the files are not stored in one folder: On the public JSP page, there are
The Code is as follows:
<% @ Page language = "java" import = "java. util. *" pageEncoding = "UTF-8" %>