• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

see the discuss from the struts newsgroup,what's your opinion?

Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have the same question too.
according to your explanation,after the client submit the form,the program will be directed to a action class,in the beginning of the class,you set the "queryInProgress" to "true",after that you connect to database and execute query,when you finish the query,set the variable to false,then forward to the result page(it is the waiting page too),in this time,the variable is already set to false,so that i don't think the waiting page will be displayed.
otherwise if you put the forward command before the database connection,the class can't be compiled successfully i think,because you must return the forward at the end of the action class,would you post your code snippet here,it wiil be appreciated.
i privately think that if want to implement such a function,you must use the "SessionBindingListener",but i don't know how,could you give us more detailed instruction?
thank you very much!
----- Original Message -----
From: "Peter S. Hamlen" <phamlen@mail.com>
Newsgroups: basebeans.org.apache.jarkata.struts
Sent: Saturday, October 05, 2002 2:27 AM
Subject: Re: JSP to forward to "please wait" page and then "result" JSP

> What I've done in the past:
> Store a variable in the user's session (eg, queryInProgress).
> On the "results page", use <logic:match name="queryInProgress"
> value="true"> tags to display the "please wait" content, and otherwise
> display the results set.
> (Make sure that the bit running the query sets the variable back to
> false when it's done, of course.)
> -Peter
> On Fri, 2002-10-04 at 13:39, JSP Use wrote:
> > I have a long runing querry (5 minutes plus).
> >
> > When a users enters the arguments, I want to submit
> > "forward" to a "please wait JSP", similar to Expedia.
> >
> > When the querry returns, I want the user to see the
> > resulting report.
> >
> > ??
> >
> > Suggestions?
> >
> >
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > New DSL Internet Access from SBC & Yahoo!
> > http://sbc.yahoo.com
> >
> > --
> > To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
> >
> --
> To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
    Bookmark Topic Watch Topic
  • New Topic