You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Randy Shepherd <ra...@iwin.com> on 2005/09/16 20:40:11 UTC

Orbitz-style processing page with Struts

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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Orbitz-style processing page with Struts

Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Orbitz-style processing page with Struts

Posted by Randy Shepherd <ra...@iwin.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This looks perfect! Thanks!!

On Sep 16, 2005, at 11:57 AM, gramani@intellicare.com wrote:

> Hey Randy, take a look at this:
>
> http://wiki.apache.org/struts/StrutsPleaseWait
>
> i haven't read it or implemented it myself, but looks promising..:)
> Geeta
>
> Randy Shepherd <ra...@iwin.com> wrote on 09/16/2005 02:40:11 PM:
>
>> 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: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>> -- 
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
>
>>
>> CONFIDENTIALITY NOTICE:This email is intended solely for the person
>> or entity to which it is addressed and may contain confidential
>> and/or protected health information.  Any duplication,
>> dissemination, action taken in reliance upon, or other use of this
>> information by persons or entities other than the intended recipient
>> is prohibited and may violate applicable laws.  If this email has
>> been received in error, please notify the sender and delete the
>> information from your system.  The views expressed in this email are
>> those of the sender and may not necessarily represent the views of
>> IntelliCare.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFDKx1QvmgyD0mfSYQRAi+dAJ9hcsZ8G3R/WrcXVUjm0mM3lPKUvACgt2gc
p/XhLVaRUpm8AAvuR5PILII=
=YU8f
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


using scriplets within tags

Posted by Dilip Ladhani <di...@hotmail.com>.
Hey guys,

I am using tiles to construct a page using bunch of jsps, say jsp1, jsp2, 
jsp3. The layout page is called jsp0 (say)

Now in jsp1, I have html:text element, I have a javascript, that I need to 
execute "onblur" of this textfield. The javascript function, needs to pass 
an attrbute (as a parameter) which is present in my form.
Here's what I have in jsp1 at the top.
<bean:define id="executionState" name="form1" 
property="preliminaryContract_ContractExecutionState" />

and then here's my html:text element
<html:text property="itemization_Line1CashPrice" style="width:90px" 
styleClass="textField" onblur="this.className='fieldInactive'; 
reCalcFields('<c:out value="${executionState}"/>');" size="4" maxlength="10" 
/>

I keep getting the error "Attribute ${executionState} has no value "  How do 
I do this?

I have tried everything, including using jstl, bean:write etc. Any 
suggestions?

Thanks guys.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Orbitz-style processing page with Struts

Posted by gr...@intellicare.com.
Hey Randy, take a look at this:

http://wiki.apache.org/struts/StrutsPleaseWait

i haven't read it or implemented it myself, but looks promising..:)
Geeta

Randy Shepherd <ra...@iwin.com> wrote on 09/16/2005 02:40:11 PM:

> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 

> 
> CONFIDENTIALITY NOTICE:This email is intended solely for the person 
> or entity to which it is addressed and may contain confidential 
> and/or protected health information.  Any duplication, 
> dissemination, action taken in reliance upon, or other use of this 
> information by persons or entities other than the intended recipient
> is prohibited and may violate applicable laws.  If this email has 
> been received in error, please notify the sender and delete the 
> information from your system.  The views expressed in this email are
> those of the sender and may not necessarily represent the views of 
> IntelliCare.