Home >Web Front-end >JS Tutorial >Analysis and solution to the problem that the js path cannot be found due to the include tag_javascript skills
Things to note when using jsp:include tags and <%@ include tags
First recall the difference between the two (for this article, there is no difference in usage between the two)
jsp:include It is to compile the included.jsp file first, and then include it (compile first, then include)
@include is to include the file first, and then compile it uniformly (include first, then compile)
I want to use Jquery this afternoon Integrate it into the project and find that there will be problems no matter what. The reason is the path problem.
When integrating, my idea is to write a public JSP file, which contains some commonly used js files. Of course, I use the Jquery plug-in here.
But after writing it, I found that the public JSP can be used when tested alone, but JQuery cannot be used on pages containing public JSP pages. At first, I thought it was a loading order problem.
After several tests, the problem was finally discovered.
Due to the large number of project files, the files are not placed in one folder: in the public JSP page, there are