This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Preload JSP with image content-type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Preload JSP with image content-type" Watch "Preload JSP with image content-type" New topic

Preload JSP with image content-type

Mir Ricco

Joined: Jun 19, 2003
Posts: 15
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.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
This sounds like a problem that you should use JavaScript for, so ask in that forum.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60794

Thusly moved.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
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

Joined: Jun 19, 2003
Posts: 15
Yes, everytime you request the page you get a new picture, but when the page is refreshed the blinking is very annoying
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Preload JSP with image content-type
Similar Threads
Thread Sleep and HTML Page Refresh
jsp refreshing the action class method
Time delays inbetween forwarding of jsp pages?
Refreshing images
Which design to use?