. Advertisement .
..3..
. Advertisement .
..4..
I have the following javascript code, but I do not know how to find the correct result. Why has this problem occurred, and how can it be solved? This is the code I am running:
<link href="../Jquery/jquery.multiselect.css" rel="stylesheet"/>
<link href="../Jquery/style.css" rel="stylesheet" />
<link href="../Jquery/prettify.css" rel="stylesheet" />
<script src="../Jquery/jquery.multiselect.js"></script>
<script src="../Jquery/prettify.js"></script>
This is the error text I receive:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/RetailSmart/jsp/Jquery/jquery.multiselect.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/RetailSmart/jsp/Jquery/style.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/RetailSmart/jsp/Jquery/prettify.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/RetailSmart/jsp/Jquery/jquery.multiselect.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/RetailSmart/jsp/Jquery/prettify.js
Here is the detailed answer for you
→ Solving the error “Failed to load resource: the server responded with a status of 404 (not found)”
Your files are not in the jsp folder, so it was not found. You have to go back to the previous folder. Please try again with this code:
If you are using a resource with the extension woff and you are experiencing errors you can add the following code to your web.config application. This will assist in solve the issue.
adding link/ script in the way as follow if it is not found the Resources like JavaScript or CSS:
Using an absolute URL is that I’m guessing that the links are in a common file. If you try to correct your relative path by adding another “../”, you could damage any of the files that are contained in the /jsp.