aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes changes are not being reflected in the javascript file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "changes are not being reflected in the javascript file" Watch "changes are not being reflected in the javascript file" New topic
Author

changes are not being reflected in the javascript file

Prasad Kharkar
Ranch Hand

Joined: Mar 07, 2010
Posts: 440

Hello all

I am doing a simple project in JSP and Servlets using eclipse
I have included a file submit.js in that and it worked fine till yesterday

today I made changes in it, they are getting saved in eclipse but when I start the web project
in the web application, the javascript I got is the previous one

then I refreshed the project, restarted tomcat, but no use at all

then for just checking , I completely deleted the file from the project but it is still working
means, firefox is successfully linking to the javascript file and showing the PREVIOUS code

but when I open that in internet explorer then the file is not found

what is the problem?

is it with firefox?

please help

have a nice time


SCJP 6 [86%] June 30th, 2010
OCPWCD [84%] March 26th, 2012
OCEJPAD [83%] September 6th, 2014
If you find any post useful, click the "plus one" sign on the right
Prasad Kharkar
Ranch Hand

Joined: Mar 07, 2010
Posts: 440

husshh !!
Solved it by clearing the cache in firefox

but I have another query
I want to go to some page after the javascript function is called

I wrote the following code but it is not working
what should I do to correct it?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can not do that.

The form submission posts back to the server so that action is in a race condition with setting the page location. You should do the redirection to that page on the serverside with the form submission.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: changes are not being reflected in the javascript file