• 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

Display please wait overlay(page should freeze) while the action is executing.

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to implement an overlay on my JSP front-end which will freeze the page with a dialog displaying a "please wait" gif animation while the execute
method of the action class is getting executed.
Currently the JSP page has a file upload component clicking on the upload button of which the form is submitted and the form property representing
the upload button is set. There is a if block on the execute method of the form which handles getting the records from the uploaded excel file.
When the no. of records is very large then the processing of the execute takes a lot of time and the user has no clue.
So to avoid this I need to freeze the page while the action is processing and as soon as the action returns the forward object the page should unfreeze.

Please help.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Struts2 ..you can use ' execute and wait interceptor '...it's very easy to implement...
 
Dk Bose
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can't use struts 2 as our project is running on struts 1.3x. Is there any alternative approach or do I have to dive into AJAX.
 
reply
    Bookmark Topic Watch Topic
  • New Topic