see the discuss from the struts newsgroup,what's your opinion?
posted 13 years ago
hello 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" <email@example.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:firstname.lastname@example.org> > > For additional commands, e-mail: <mailto:email@example.com> > > > > > > -- > To unsubscribe, e-mail: <mailto:firstname.lastname@example.org> > For additional commands, e-mail: <mailto:email@example.com> >