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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56179
    
  13

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?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56179
    
  13

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: 639
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: 56179
    
  13

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...
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSP auto refresh flickering problem
 
Similar Threads
Image Loading Issue in JSP
Flickering JFrame images
direct drawing
Image Viewer Applet
Webpage flickering problem