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
Author

Preload JSP with image content-type

Mir Ricco
Greenhorn

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

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

Joined: Jan 10, 2002
Posts: 61209
    
  66

Thusly moved.


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

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

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Preload JSP with image content-type