aspose file tools*
The moose likes Struts and the fly likes Busy page while data loading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Busy page while data loading" Watch "Busy page while data loading" New topic
Author

Busy page while data loading

RaviSingh Kumar
Ranch Hand

Joined: Sep 04, 2007
Posts: 52
Hi,

I have made a small application based on struts framework. There is button name 'Search'. When the user click on this button all the information is fetch from database and shown in jsp page.

What i want is after clicking Search button, there must be some temporary page which show "Please wait while data is fetched. Donot refresh or click back button." for a specified amount of time. After the time elapsed the result page must be shown.

Thanks in advance.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

One solution will be:
1. When you click 'Search', forward request to, say 'loading.jsp' page.
2. In loading.jsp page, show whatever information you want to display to the user, like "Please wait...."
3. In 'Loading.jsp''s head tag, put this lines

4. This META tag, call the Search Action, and while searching is going on, user will see 'Please wait' page and once the response is committed the user immediately see results.

HTH


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Andre Trindade
Greenhorn

Joined: May 30, 2011
Posts: 1
Good solution.

But I have some questions:

How to does NOT lose the content of submitted form? So you need to receive it in your loading.jsp ?

I don't really know how it works.


Btw, it will be helpfull. Thank you and Sorry for my English
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Busy page while data loading