wood burning stoves 2.0
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
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: 13036
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: 63852

Thusly moved.

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
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
I agree. Here's the link: http://aspose.com/file-tools
subject: Preload JSP with image content-type
It's not a secret anymore!