You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by gg...@e-tree.com on 2000/11/16 19:48:30 UTC

RE: RE: HowTo: Display a standby page/message for lenghty

Hi guys,
aren't we dealing with a server based framework implementing MVC pattern?
I mean: if your application receives a request you can respond via
different
pages (a http-refresh waiting page, an error page, a confirmation page etc)
corresponding to the state of a session bean implementing the business
process.
The Chris Wilson's way works fine but it's based on a page centric
application,
while struts is not ( or almost not necessarly )
Hope this help
Pino
Chris Wilson wrote:
> please correct me if i'm wrong, but i believe this is accomplished in the
> following manor:
>
> you submit to, or go directly to a simple page that displays your
> "processing..." message.  that page has a meta refresh tag (or it could
even
> be javascript for that matter) that redirects to the page/servlet that
> actually does the work (search, lookup, processing, etc.).  the important
> thing is that you don't want the work page/servlet to send any content to
> the browser until it's done processing.  basically, you want to buffer
the
> output or simply not send anything until it's done.  the moment that
output
> is sent back from the server, your processing page will go away and the
> results will be displayed.  this works because the browser still shows
the
> processing page (even though you've told it to go somewhere else) until
it
> gets content from the work page.
>
> hope that makes sense...  :)
>
> cheerio,
> chris
>
> | chris wilson || web dev ||| www.wondergeek.com || |
>
> > -----Original Message-----
> > From: Matthias Kerkhoff [mailto:make@BESToffers.de]
> > Sent: Saturday, September 16, 2000 6:36 AM
> > To: struts-user@jakarta.apache.org
> > Subject: HowTo: Display a standby page/message for lenghty actions
> >
> >
> > Hi all,
> >
> > I have some lengthy actions (triggered by form submission)
> > and would like to display a standby message (or page) to the
> > user. Could someone give me a hint how I should do this with
> > Struts ?
> >
> > --
> > Matthias			      mailto:make@BESToffers.de
> >
> >
> >




RE: RE: HowTo: Display a standby page/message for lenghty

Posted by Chris Wilson <wo...@email.com>.
see my comments below...

| chris wilson || web dev ||| www.wondergeek.com || |

> -----Original Message-----
> From: ggalli@e-tree.com [mailto:ggalli@e-tree.com]
> Sent: Thursday, November 16, 2000 1:49 PM
> To: struts-user@jakarta.apache.org
> Subject: RE: RE: HowTo: Display a standby page/message for lenghty
>
>
> Hi guys,
> aren't we dealing with a server based framework implementing MVC pattern?
> I mean: if your application receives a request you can respond via
> different
> pages (a http-refresh waiting page, an error page, a confirmation
> page etc)
> corresponding to the state of a session bean implementing the business
> process.

there's no reason why you can't send back any type of page you want.  i was
not trying to promote a page centric vs. whatever mode of operation.  in
fact if you were sending stuff to a wap phone, the interaction i described
might not even work.  i was simply trying to explain how to show a
processing page that automatically goes to the results of the process once
it's done (at least in the http/html world).

> The Chris Wilson's way works fine but it's based on a page centric
> application,
> while struts is not ( or almost not necessarly )
> Hope this help
> Pino
> Chris Wilson wrote:
> > please correct me if i'm wrong, but i believe this is
> accomplished in the
> > following manor:
> >
> > you submit to, or go directly to a simple page that displays your
> > "processing..." message.  that page has a meta refresh tag (or it could
> even
> > be javascript for that matter) that redirects to the page/servlet that
> > actually does the work (search, lookup, processing, etc.).  the
> important
> > thing is that you don't want the work page/servlet to send any
> content to
> > the browser until it's done processing.  basically, you want to buffer
> the
> > output or simply not send anything until it's done.  the moment that
> output
> > is sent back from the server, your processing page will go away and the
> > results will be displayed.  this works because the browser still shows
> the
> > processing page (even though you've told it to go somewhere else) until
> it
> > gets content from the work page.
> >
> > hope that makes sense...  :)
> >
> > cheerio,
> > chris
> >
> > | chris wilson || web dev ||| www.wondergeek.com || |
> >
> > > -----Original Message-----
> > > From: Matthias Kerkhoff [mailto:make@BESToffers.de]
> > > Sent: Saturday, September 16, 2000 6:36 AM
> > > To: struts-user@jakarta.apache.org
> > > Subject: HowTo: Display a standby page/message for lenghty actions
> > >
> > >
> > > Hi all,
> > >
> > > I have some lengthy actions (triggered by form submission)
> > > and would like to display a standby message (or page) to the
> > > user. Could someone give me a hint how I should do this with
> > > Struts ?
> > >
> > > --
> > > Matthias			      mailto:make@BESToffers.de
> > >
> > >
> > >
>
>