Analysis on the problems caused by the include tag that cannot be found in the js path and troubleshooting _ javascript skills

Source: Internet
Author: User
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" %>

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.