File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

making jsp wait

 
michael yue
Ranch Hand
Posts: 204
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a jsp that get records from database. The problem is before getting the records there is another process in servlet that is responsible for putting in the records and it takes some time. The time the servlet redirects to the jsp it seems the records has not been inserted yet so my jsp unable to get the records. But after a while I execute the jsp again and it can get the records. So now I need some sort of way to make my jsp wait for a while after the redirect to get the records. Is there a way to do this. Or is there another way.

Thanks.
 
smitha verghese
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

The records can be fetched from the database once u know that u dont have an empty result set.
else u keep refreshing the page

Its so simple ! let me know if this clarifies u!

smitha
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this old thread:
waiting screen

HTH
 
michael yue
Ranch Hand
Posts: 204
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not doing a waiting screen now. Just need to get some records after some time elapse. The refresh page, how can I perform just once refresh after like 5 seconds. Not on every 5 seconds though. Thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic