File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
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: 12759
    
    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: 60759
    
  65

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Preload JSP with image content-type
 
Similar Threads
jsp refreshing the action class method
Time delays inbetween forwarding of jsp pages?
Refreshing images
Which design to use?
Thread Sleep and HTML Page Refresh