File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes JSP auto refresh flickering problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP auto refresh flickering problem" Watch "JSP auto refresh flickering problem" New topic
Author

JSP auto refresh flickering problem

Vignesh Babu M.J
Greenhorn

Joined: Jan 12, 2008
Posts: 3
Hi,

Can anyone tell me how to avoid flickering problem when a jsp page get refreshed automatically ( every 1 seconds ).
every second java bean is being called in that jsp page..


Regards,
Vignesh.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

This has nothing to do with JSP. It's just the browser redrawing the page. The only way to avoid it is not to do it.

Why are you refreshing the page so often? Without more information, how can anyone suggest alternatives?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vignesh Babu M.J
Greenhorn

Joined: Jan 12, 2008
Posts: 3
Hi,

Here is the code.



Is there any better way to avoid flickering problem?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

You did not answer my question: why? Without knowing what you are really trying to accomplish, it's hard to suggest alternative solutions.
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 642
Assuming you need to refresh the page for some reason, one possible solution would be to use Ajax. Using Ajax, you can send a request to the server, get the response, and apply it to your page elements - all without refreshing the page.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

Exactly why I asked for clarification. If all that is necessary is for the data on the page to be periodically updated, an Ajax solution would be perfect.
Vignesh Babu M.J
Greenhorn

Joined: Jan 12, 2008
Posts: 3
Hi,
Exactly i wanted some portion of the page need to be updated periodically( say, once in every second ). Finally i could able to accomplish using AJAX.
Thanks for your valuable support. Really it helped me a lot...... thanks again...
 
wood burning stoves
 
subject: JSP auto refresh flickering problem
 
Similar Threads
Image Viewer Applet
direct drawing
Flickering JFrame images
Webpage flickering problem
Image Loading Issue in JSP