• 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

"Please wait ...." message to be displayed

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are many ways to display the message “please wait while ….” when the page is loading.
But in our application,
We have to display the same message when the report file (xls,pdf etc) is opening.

For this, we have one jsp file say ‘abc.jsp’ and this jsp calls a servlet say ‘file.class’.
File.class takes some parameters like report_id and report_location (location at server) passed by abc.jsp.

If we apply the window.onload = <some function() > to display the “please wait…” message, it does not work.

And if we remove the concept of servlet and simply replace the window using location.href and assign the location like-

Location.href = “http://abc.com//xyz/infy/mnc.xls” then problem comes as – when abc.jsp is opening that time the “wait…” message comes for short time but as soon as the url is replaced with “http://abc.com//xyz/infy/mnc.xls” , the “wait…” message disappears. I know this is happening because of new page on the same window. So can we have message while the link takes time to get open. Because this is our actual requirement. And we want to show the message to users when any huge size file is opening.

Any suggestion??

Thanks,
Manisha
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP. For more information, please read this.

This post has been moved to a more appropriate forum.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is nothing you can do to ake it show up on that other page. Iframes, Frames, or pop ups would be your only solution and each of them have their major issues.

Eric
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

manisha gupta wrote:There are many ways to display the message “please wait while ….” when the page is loading.
But in our application,
We have to display the same message when the report file (xls,pdf etc) is opening.

For this, we have one jsp file say ‘abc.jsp’ and this jsp calls a servlet say ‘file.class’.
File.class takes some parameters like report_id and report_location (location at server) passed by abc.jsp.

If we apply the window.onload = <some function() > to display the “please wait…” message, it does not work.

And if we remove the concept of servlet and simply replace the window using location.href and assign the location like-

Location.href = “http://abc.com//xyz/infy/mnc.xls” then problem comes as – when abc.jsp is opening that time the “wait…” message comes for short time but as soon as the url is replaced with “http://abc.com//xyz/infy/mnc.xls” , the “wait…” message disappears. I know this is happening because of new page on the same window. So can we have message while the link takes time to get open. Because this is our actual requirement. And we want to show the message to users when any huge size file is opening.

Any suggestion??

Thanks,
Manisha






Popup window is the best solution where in you can generate the report in popup.You can display the wait message in the popup itself.
 
manisha Gupta Garg
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Anwer,

Thanks for replying!

but the url of the report that we want to open gets changed in abc.jsp. and the message disappers when the url is changed.
we dont want to display the message when abc.jsp page is loading, but when the actaul report get start downloading

tried every possible way ...but couldnt get resolve

Thanks,
Manisha
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic