Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Error: failed to load resource: the server responded with a status of 404 (not found) - How to solve it?
Next
Answered
bergstromellis
  • 21
bergstromellis
Asked: May 5, 20222022-05-05T08:15:04+00:00 2022-05-05T08:15:04+00:00In: javascript

Error: failed to load resource: the server responded with a status of 404 (not found) – How to solve it?

  • 21

. 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
404 (not found)failed to load resource
  • 4 4 Answers
  • 130 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

4 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    adminxy Expert
    2022-07-04T03:55:42+00:00Added an answer on July 4, 2022 at 3:55 am

    Here is the detailed answer for you

    → Solving the error “Failed to load resource: the server responded with a status of 404 (not found)”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. mlindgren
    2022-05-05T08:40:43+00:00Added an answer on May 5, 2022 at 8:40 am

    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:

    <script src="../../Jquery/jquery.multiselect.js"></script>
    • 16
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  3. adah91
    2022-05-10T05:12:01+00:00Added an answer on May 10, 2022 at 5:12 am

    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.

    <system.webServer>
    <staticContent>
    <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
    </staticContent>
    </system.webServer>

    adding link/ script in the way as follow if it is not found the Resources like JavaScript or CSS:

    <link ref="@(Url.Content("path of css"))" rel="stylesheet">
    <script src="@(Url.Content("path of js"))" type="text/javascript"></script>
    • 8
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  4. bsawayn
    2022-05-10T04:05:23+00:00Added an answer on May 10, 2022 at 4:05 am

    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.

    <link href="/RetailSmart/Jquery/jquery.multiselect.css" rel="stylesheet"/>
    • 7
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.