File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changes are not being reflected in the javascript file

 
Prasad Kharkar
Ranch Hand
Posts: 446
1
Eclipse IDE MySQL Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Prasad Kharkar
Ranch Hand
Posts: 446
1
Eclipse IDE MySQL Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic