aspose file tools*
The moose likes JSP and the fly likes making jsp wait Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "making jsp wait" Watch "making jsp wait" New topic
Author

making jsp wait

michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
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

Joined: Jun 21, 2003
Posts: 42
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

Joined: Feb 04, 2002
Posts: 231
Check this old thread:
waiting screen

HTH
michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: making jsp wait