Maybe you should try to minimize this load time.

Is it possible that you could use persistence instead of querying the db everytime 
someone wants to view this page?

I'm using a Caching API that was(maybe still is) part of Jive forums, I know that 
there are others as well.  Instead of querying the database everytime I need some 
data, I check to see if I already have this data in memory.

If you already have a model, this is easy to do.

-Dave



> -----Original Message-----
> From: Quentin.Cope [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 8:39 AM
> To: Struts Users Mailing List
> Subject: RE: Automatic refresh - IS THIS POSSIBLE? 
> 
> 
> Cool
> 
> Much more complete answer than mine but still not a great 
> idea, and has the same downsides as the meta tag stuff, 
> unless I am missing the point. The "processing servlet", the 
> process that takes a long time, is only fired off once the 
> user has downloaded the "please wait" page and executed the 
> java script. Perhaps I am worrying over nothing but what 
> would be real nice is to be able to fire off the long job 
> first, then display the message, then somehow connect up to 
> the long job. Perhaps you could do something with threads to 
> fire off the long job..... or maybe I am making this just a 
> little too complex!
> 
> Quentin
> 
> -----Original Message-----
> From: Roger Fortier [mailto:[EMAIL PROTECTED]]
> Sent: 30 January 2003 14:21
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject: RE: Automatic refresh - IS THIS POSSIBLE? 
> 
> 
> Check out this article from JavaPro magazine. 
> 
> "Send Users a Browser Message"
> 
> http://www.javapro.com
> 
> Click "Archives", then select the January 2001 issue from the 
> archives.
> 
> 
> 
> 
> -----Original Message-----
> From: Sowbhagya Valli Suryadevara
> [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, January 30, 2003 5:57 AM
> To: 'Struts Users Mailing List'
> Subject: Automatic refresh - IS THIS POSSIBLE? 
> 
> HI,
> 
> We are using the struts & tiles  framework in our project. There is a
> particular request that consumes a lot of time (20 seconds). 
> Instead of
> showing a blank page is it possible to show a "Please Wait " message
> while
> the processing is happening in the background. Then when the 
> processing
> is
> over the page should come up automatically.
> 
> IS THIS POSSIBLE?
> 
> Valli
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to