aspose file tools*
The moose likes Servlets and the fly likes see the discuss from the struts newsgroup,what's your opinion? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "see the discuss from the struts newsgroup,what Watch "see the discuss from the struts newsgroup,what New topic
Author

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

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
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" <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>
>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: see the discuss from the struts newsgroup,what's your opinion?
 
Similar Threads
Struts Error
Facing problem in struts application
Cannot retrieve mapping for action
Problem while creating Struts application
Not getting bean values inside IE, In firefox working fine