• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSp page is not displaying run-time new image  RSS feed

 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my struts JSp page, there is a <src = "/some_image.jpg"> line, and the "some_image.jpg" is a *dynamic* value (it changes every time I click the button), when i click the button it reloads the same page but some other actions are done behind the scene, when the page is reloaded, it gets a different "some_image.jpg" everytime, so I am supposed to see the different image. However, I found that from "view source" I did see the different image file name, but the JSP page is still showing the last image, of course when I click "refresh" it works. but I am wondering if there is a one that I can immediately see the new image without having to click "refresh" ?

what should I do inside the JSP or whatever ?

thanks
 
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing in JSP can help or cause this, so I've moved this to the HTML forum as this is clearly a browser issue.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!