Ask Your Question
2

Why isn't my website's js and css code being updated when using Eclipse and Tomcat?

asked 2023-05-01 08:00:07 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-01 08:18:02 +0000

huitzilopochtli gravatar image

There could be several reasons for this issue. Here are a few common ones:

  1. Cache: Your browser might have cached the previous version of your website's JS and CSS files. Try clearing your browser cache and reloading the page to see if the changes are reflected.

  2. Tomcat configuration: Check if your Tomcat server is configured to reload resources automatically. If not, you may need to manually restart the server for changes to take effect.

  3. Eclipse Build: Make sure that your Eclipse project is configured to automatically build changes to your JS and CSS files. You can check this by right-clicking on your project and selecting Properties > Builders. Ensure that the appropriate Build Command is selected and that the "Auto build" option is enabled.

  4. File paths: Check that your JS and CSS files are being referenced correctly in your HTML code. If the file paths are incorrect, the browser will not be able to load the new files.

  5. Deployment: Ensure that your updated JS and CSS files were successfully deployed to the correct location on your application server. If the files are not present or not loaded correctly, the changes will not take effect.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-01 08:00:07 +0000

Seen: 12 times

Last updated: May 01 '23