Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Busy page while data loading

 
RaviSingh Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Andre Trindade
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic