Win a copy of Head First Go this week in the Go forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Preload JSP with image content-type  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
my jsp is generating the image of graph structure read from db.
To have actual state of the objects on the graph i have refresh in my page.
But everytime the refresh arise, entire page is regenerated and it takes a long time causing me the page dissapears for a 1-2 seconds and after then is shown the new image.
Isn't it possible to preload the image page 2 seconds before end of refresh interval and swap it when it is loaded. Thus it can appear only as the short blink, or even none.
Every suggestion is gratly appreciated.
Mir
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like a problem that you should use JavaScript for, so ask in that forum.
Bill
 
Marshal
Posts: 67243
170
IntelliJ IDE Java jQuery Mac Mac OS X
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just thinkingabout it really quikly you ca not do anything about the time it takes.
What I gather is you are dynamcially making these pics??
 
Mir Ricco
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, everytime you request the page you get a new picture, but when the page is refreshed the blinking is very annoying
 
Fire me boy! Cool, soothing, shameless self promotion:
ScroogeXHTML 8.2 - easy to use RTF to HTML converter library
https://coderanch.com/t/707504/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!