Solved

JSP/Servlet Loading Indicator

Posted on 2009-05-19
5
319 Views
Last Modified: 2013-11-24
I have a JSP page that does an SQL query that takes about a minute, so the HTML page doesn't get rendered right away.

Is there an easy to use, robust  Loading indicator I can use with JSPs?  Kind of like the Vista loading icon?
0
Comment
Question by:lcor
  • 2
  • 2
5 Comments
 
LVL 26

Expert Comment

by:mrcoffee365
ID: 24426977
JSP is server-side technology, not related to client-side activities like loading indicators.  You can use Javascript to show loading progress.
0
 
LVL 12

Accepted Solution

by:
Gibu George earned 250 total points
ID: 24432091
Try using DWR and instead of using JSp and you can use the reverse ajax feature to get the status or loading indicators
directwebremoting.org
0
 
LVL 26

Assisted Solution

by:mrcoffee365
mrcoffee365 earned 250 total points
ID: 24432573
Yes, DWR is a package of Javascript with Java for Ajax calls (Javascript again) to do a loading indicator.  There are many Javascript packages which do loading indicators.  If the server code is written in Java, then it can be a JSP page or a servlet.  Whatever the server code is, the relevant portion is that the client code is Javascript.
0
 
LVL 12

Expert Comment

by:Gibu George
ID: 24433371
With DWR you need to write a nomianl amount of javascript to write the remaining is generated by the DWR itself
0
 

Author Comment

by:lcor
ID: 24454631
Anyone know of any good javascript loading indicators?
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now