• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Busy page while data loading

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
What? What, what, what? What what tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic