[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

JSP/Servlet Loading Indicator

Posted on 2009-05-19
5
Medium Priority
?
333 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 27

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 1000 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 27

Assisted Solution

by:mrcoffee365
mrcoffee365 earned 1000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

830 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