• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

changes are not being reflected in the javascript file

 
Ranch Hand
Posts: 446
1
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Yeah. What he said. Totally. Wait. What? Sorry, I was looking at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic