Yes. "But beware O Man, beware, of Those who tread in Darkness the ramparts of Kadath, for he that beholds Their mitred-heads shall know the claws of doom."
I've actually been struggling with this for a while now, and have come up with a solution that (mostly) works, but it has been difficult. Our requirements were: 1) Display a happy little animation for the user's benefit 2) Have browser's "throbber" throb while the "wait" page is displayed 3) Work within the Struts framework 4) Being a good netizen, you want this to work on different browsers The best solution I have found is to extend ActionServlet and ActionMapping in order to add a "please wait" flag to both via struts-config. Your WaitActionMapping would simply have private boolean showWaitPage = false; with the appropriate getter and setters in it. You would then set this parameter via struts-config and be done with that part of it. In WaitActionServlet you would check the showWaitPage value for that mapping, and if true you would at this point show the splash screen using (!) out.prints. After this you would do an out.flush(), which would show the splash screen to the user but leave the connection open. Now you do your heavy-duty task, probably in a separate thread, and check it occasionally from within WaitActionServlet. If it's done, you send some JavaScript to overwrite the splash screen and forward to the appropriate JSP as defined in your struts-config. Now, this is all completely theoretical, because our rather expensive servlet container has an extremely irritating bug that causes out.flush() to not work. The solution we implemented involves > -----Original Message----- > From: Dhruva B. Reddy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 15, 2003 2:23 PM > To: Struts Users Mailing List > Subject: Splash Screen in Struts > > I have an Action that could potentially take a long time to execute, > and would like to display a splash screen until the results of the > action are ready. > > I went googling for this, but I can't seem to find a solution that > would fit within the Struts framework. Has anyone done this before? > > Thanks, > Dhruva > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > --------------------------------------------------------------------- > 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]