jQuery in Action, 2nd edition*
The moose likes Servlets and the fly likes Displaying Loading gif or waiting message until servlet loads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Displaying Loading gif or waiting message until servlet loads" Watch "Displaying Loading gif or waiting message until servlet loads" New topic
Author

Displaying Loading gif or waiting message until servlet loads

Sankalp Dam
Greenhorn

Joined: Jan 17, 2013
Posts: 13
I have a application that invokes a servlet through the URL

"http://server:port/context-root/myservlet"
The servlet then calls the Java Class which returns the query result back to servlet.The servlet then renders the data to the user through a JSP page(response.redirect)

Now it hapens so, when all this happens Page Cannot be displayed is rendered to the useruntil the JSP page is ready to show the data.

How can I show a loading gif or a messgae as soon as the servlet is invoked until the JSP page is loaded with all the required data:

NOTE: As mentioned above, I am first calling the servlet, then Java Class, then JSP.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60773
    
  65

You can't. That has to happen on the client.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying Loading gif or waiting message until servlet loads
 
Similar Threads
Showing a Loading gif(Image) on Processing
how to set loading message until data display
Problem with a gif in google chrome
Waiting Message
How to Loading.gif when page not Displayed error or white screen while JSP page fetches information