One thing I have done in the past is to replace the submit button with
an animated gif that resembles a status bar. This keeps users from
double posting the form, and gives a bit of visual feedback to indicate
to the user that he/she should wait.

If you want something more, you should take a look at the Execute and
Wait Interceptor. ->

http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html



On Tue, 2008-12-09 at 14:40 -0800, RudyG wrote:
> Hello.
> 
> I have an odd problem that I can't seem to resolve. I use struts along with
> JSP to call Java Servlets on the back end. Some back end calls take a little
> while when used by the WEB users so I've been asked to put up a message that
> tells the users to "Please Wait" so that they don't press the Submit button
> multiple times. So what I ended up doing was calling a Javascript function
> from within the onclick() event of the Submit button. And here are the
> contents of the function:
> 
> function splashScreen()
> {
>       document.write("<p
> style='color:black;background-color:aqua;text-align:center;margin:25% 25%
> 10% 25%;border: medium double black;'>Processing Data.<br>Please
> Wait.</p>");
>       document.forms[0].submit();
>       return true;
> }
> 
> However the problem is that after the document write is executed the
> processing stops. All attempts of doing the submit() from Javascript also
> does not work as it gives some sort of permission violation. Does anyone
> have any suggestions?
> 
> Thank you in advance.
> Rudy
> 


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

Reply via email to