• 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

JSp page is not displaying run-time new image

 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic