Hi Randy,

There's basically two distinict approaches to solving this problem,
neither is specific to Struts...

(1) The server-based approach.  This is along the lines of your meta
refresh in that you kick off some server process and have the client
periodically poll for a status.  This is more complex to implement but is
probably the more client-friendly approach because (a) it will be more
accessible to more people (i.e., no scripting and things of that nature)
and (b) give you the ability, should you choose to allow it, to let users
go away and come back later.

(2) The client-side approach.  There are multiple ways to do it under this
same umbrella...

  a. Target the form submission to a new window.  Have the target of the
form be the "Processing..." page, and when that returns, in response to
the onLoad event, do the *real* form submission that does the
processing.

  b. Have a hidden layer on your page that has that "Processing..." markup
in it.  When the form is submitted, hide all the contents on the page
and show that hidden layer.

  c. Other permutations of either of the above.

I've had occassion to do both and I can honestly say that unless you have
that need to allow users to come back later, I would go with the
client-side approach.  It winds up being quite a bit simpler to do and
works just about as well.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Fri, September 16, 2005 2:40 pm, Randy Shepherd said:
> Hey Guys..
>
> Pretty basic question here. I am looking for suggestions how to display
> an orbitz-style processing page while the server process a request. The
> user is submitting a form with credit card and address information for
> a purchase and there are several partner systems which may take up to a
> few seconds to complete their tasks. While we are waiting, I want to
> display some sort of page with an animated gif telling the user to be
> patient.
>
> I have accomplished this before in a model 1 architecture using a JS
> meta-refresh tag. I am not sure that is the best way in Struts. What do
> you think?
>
> Thanks,
> Randy
>
>
> ---------------------------------------------------------------------
> 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